« first day (3081 days earlier)      last day (1780 days later) » 

2:37 AM
@PeterVandivier the evidence is clear.
 
 
3 hours later…
6:00 AM
@JoshDarnell Gandalf the Grey becomes Gandalf the White
Paul has always been White of course!
 
 
1 hour later…
7:17 AM
Morning
 
Morning
 
7:50 AM
morning
 
Morning all
 
Good morning
 
Morning
 
8:10 AM
Morning
 
 
2 hours later…
10:05 AM
select CASE WHEN DATEPART(HH, GETDATE()) >= 0 AND DATEPART(HH, GETDATE())<12 THEN 'Morning' ELSE 'AFTERNOON' END as Heap_Greeting ;
 
10:24 AM
@Philᵀᴹ there should a special greeting when HH is less than 0 :p
 
10:39 AM
it's always morning in the Heap™ – Consultancy
8
 
You'd better hope Aaron doesn't see that HH sqlblog.org/2011/09/20/…
 
@Philᵀᴹ select CASE WHEN DATEPART(HH, GETDATE()) >= 0 AND DATEPART(HH, GETDATE())<12 THEN 'Morning' ELSE 'Morning' END as Heap_Greeting ;
Fixed that for you
 
11:19 AM
SELECT DATEPART(THEHEAPGREETING, GETDATE());
DATEPART(THEHEAPGREETING, ...) is the only variation of the DATEPART function that is deterministic, because it returns a constant value.
2
 
@AndriyM hahahaha
 
 
3 hours later…
2:44 PM
@PeterVandivier that's an interesting point you've raised. I hadn't considered DBATools powershell could be here.
I would potentially argue that his question is less about DBATools functionality and more about Powershell semantics though
because effectively what he's saying is "The DBATools functionality has worked - how can I double check it with the file system" which isn't really to do with DBATools itself
 
3:03 PM
but then AGAIN, the premise of the question itself still pertains to DBA's directly.
I've just flip flopped twice in my own head on that.
 
It’s not a good question imo
The root of it is “why is my powershell breaking”
But the asker hasn’t quite figured that out and hasn’t tidied the question up to a point where it’s easily answerable
But it’s not gonna get a good answer on SO
The slack channel is their best bet for productive help
 
@PeterVandivier I'm not sure that should be a reason not to migrate it?
But yeah it's not a well formed question at all
 
3:25 PM
i believe the probability curve of "this-question-becomes-good" has a higher median value on dba.se than on SO
 
@PeterVandivier I bloody well hope so. Leafing through SO is like descending the circles of hell
 
in the "if-this-question-were-good-it-would-belong-at" curve, SO wins
 
I suppose ultimately it could sit in either site quite happily
 
but i don't have the motivation rn to lovingly curate it, and i think the biggest "help-for-effort" return is to dump it on slack
 
Yeah their slack is usually very helpful
 
3:27 PM
@George.Palacios is the question happy?
it does not spark joy for me
 
@PeterVandivier Well I'm certainly not
 
It'll probably just fizzle into the DBA.SE oblivion regardless
 
Morning
 
☝️this guy gets it
 
3:35 PM
@PeterVandivier or just got up late
 
Nah, it's a bug in the altered query above 😂
 
it's not a bug, it's a feature
 
@PeterVandivier Closed - By Design
 
☝️this guy gets it
 
The code now actually just looks like this
--select CASE WHEN DATEPART(HH, GETDATE()) >= 0 AND DATEPART(HH, GETDATE())<12 THEN 'Morning' ELSE 'AFTERNOON' END as Heap_Greeting ;
Print 'Morning'
 
3:39 PM
/* TODO: FIX THIS */
 
hahahaha
 
827
A: What is the best comment in source code you have ever encountered?

Rohit// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass

2
 
love that
 
`#define TRUE FALSE`
`//Happy debugging suckers`
HAHAHA
Catch (Exception e) {
//who cares?
}
brilliant.
 
You can do multiline code by clicking the fixed font button.
 
@JoshDarnell Ooh interesting thanks
I want to start a website called SQ-HELL which will be solely for submitting terrible, terrible code
Finally the internet will have a page where we can sit and laugh at other peoples bad ideas.... Wait a minute that's just the entire internet
 
4:25 PM
@George.Palacios "Bad habits to laugh at"?
 

« first day (3081 days earlier)      last day (1780 days later) »