« first day (4468 days earlier)      last day (403 days later) » 

12:33 AM
> Are you sure that
Paul can’t escape it
 
It's an absolute curse
> I understand your explanation
Goes on to describe not understanding
Probably eats cheese from Trader Joe's
 
Locally sourced I’m sure
 
 
1 hour later…
1:50 AM
@PaulWhite yum
 
So is that like the real deal?
 
Yep
 
How's the ice cream tho?
 
My wife's very fond of deepsouthicecream.co.nz
Particularly the mochachino and double chocolate ones deepsouthicecream.co.nz/our-range#2-litre
your basic tip top ice cream is also fine
there are any number of niche dairies out there making great stuff, but even supermarket blocks are perfectly good
 
2:30 AM
 
@PaulWhite Looks good. Too bad it's so far away...
Also first time I've seen the metric system in the context of ice cream, totally throwing me off lol
 
2:47 AM
Just divide everything by 13 fahrenseconds
 
3:09 AM
Yea but 1 Bald Eagle = 1 Bald Eagle. 🦅 It's just easier the American way...
 
Easier if you're a USian, perhaps
On average, no one is
 
On average you aren't Paul White
But I guess Paul White is never average 🙂
 
I just checked, and using a 100% sample, I am.
 
it's a real mystery
 
could be anyone, really
or no one
 
I created Comment Converter as way to show people how much better answers are in answers than comments. It is not intended to be used as a service (it is time consuming). Why make work for others? Answering in comments does new users a disservice by illustrating how not to do things! — Paul White ♦ Jul 19, 2018 at 14:03
 
maybe it's ChatGPT come to replace the moderators
 
Ironically, a comment on an answer of yours
But yes, comment-answers is today's sock
Or this week's. They're sort of disposable.
 
3:48 AM
 
Erik provided that originally, I think
 
heroes everywhere
 
 
3 hours later…
6:25 AM
Morning
Wordle 649 3/6*

⬛🟩🟨⬛🟨
🟨🟩🟩🟩⬛
🟩🟩🟩🟩🟩
 
Morning
Wordle 649 4/6

⬛⬛🟩🟩⬛
⬛🟩🟩🟩⬛
🟨🟩🟩🟩⬛
🟩🟩🟩🟩🟩
 
7:38 AM
Wordle 649 4/6*

⬛⬛🟨🟨⬛
⬛🟩🟨🟨🟨
⬛🟩🟩🟩🟩
🟩🟩🟩🟩🟩
 
 
2 hours later…
2
Q: Stuffing a datetime value into a datetime2 column

GaTechThomasToday I saw the following statement in a code review: ALTER TABLE dbo.MyTable ADD CreateDate DATETIME2(0) NOT NULL DEFAULT GETUTCDATE() The GETUTCDATE() function returns a datetime and is then stuffed into a datetime2 column. Does it have any significance that the two types are different? Would ...

This reminds me of the Charlieface's question from a few days ago
@PaulWhite How did you get this result, Paul? Is there a guide how to use a debugger?
 
9:34 AM
According to my execution plans, there is no overhead when inserting either values into either column types.
 
@Zikato On that occasion, I stepped through the calls manually and kept a note of the order. There might be guides to using a debugger out there.
@Zikato My read of it focuses on the "code review". I think it's sloppy coding, but I don't know I'd make a fuss over it. Might be indicative of more usual sloppiness with data types.
 
I saw some difference when inserting 10 mil rows. But the call stack would be a definitive answer
 
DROP TABLE dbo.MyTable;
CREATE TABLE dbo.MyTable
  (
  CreateDate DATETIME2(0) NOT NULL DEFAULT GETUTCDATE()
  );
INSERT INTO MyTable (CreateDate)
VALUES
  ('2023-03-30 07:16:45.1234567')
  ;
INSERT INTO MyTable (CreateDate)
VALUES
  (GETUTCDATE())
  ;
INSERT INTO MyTable (CreateDate)
VALUES
  (SYSUTCDATETIME())
  ;
SELECT * FROM MyTable;

DROP TABLE dbo.MyTableFixed;
CREATE TABLE dbo.MyTableFixed
  (
  CreateDate DATETIME2(7) NOT NULL DEFAULT GETUTCDATE()
  );

INSERT INTO MyTableFixed (CreateDate)
 
@JohnK.N. No overhead? There an implicit conversion in both cases
[Expr1003] = Scalar Operator(CONVERT_IMPLICIT(datetime2(0),getutcdate(),0))
[Expr1003] = Scalar Operator(CONVERT_IMPLICIT(datetime2(0),sysutcdatetime(),0))
 
@PaulWhite Is it possible to learn this power?
 
9:47 AM
Right. One might expect changing the precision of an already datedate2 value to be faster than converting datetime to datetime2. But expectations don't always work out. For all we know, sysutcdatetime is implemented more efficiently than getutcdate. And I really don't think performance is the main concern here. I might be wrong.
@Zikato It must be.
 
ah, of course
It'd be nice if the date/time intrinsics came with a precision specifier
Also write-once columns might be nice
CreateDate DATETIME2(0) NOT NULL
    GENERATED ALWAYS
    AS SYSUTCDATETIME2(0)
    READ_ONLY;
Something like that
Bit redundant in that case I suppose
 
even better if it was auto-named so you would have consistency across the tables
CreateDate, CreationTime, DateCreated, create_date, date_created, creation_time, CreationDate
 
10:08 AM
You might collide with existing names though, I guess
 
10:29 AM
That's a sacrifice I'm willing to make
 
Some of you may die
 
exactly
 
I've cast the upvote into the abyss
3
 
11:05 AM
@PaulWhite Missed that.
Will add to answer.
Thanks.
 
11:57 AM
It's ugly and I might delete it.
 
Wordle 649 2/6*

⬛⬛🟩🟩🟩
🟩🟩🟩🟩🟩
🔥🔥🔥
 
🎉🎉🎉
 
@JohnK.N. Morning! Unfortunately I only know one language, being an American and all, but I did watch it in its entirety and enjoyed. 🙂
@HannahVernon Noiceee 👏
 
@HannahVernon 🎈
@Zikato I wouldn't object if you had a go at answering.
 
12:15 PM
goddammit
Wordle 649 5/6

⬜🟩🟨⬜🟨
⬜🟩🟩🟩⬜
⬜🟩🟩🟩⬜
🟨🟩🟩🟩⬜
🟩🟩🟩🟩🟩
 
@JohnK.N. if I learn how to see the call stack, I'll have a go
 
Quite a quiet morning on the Stack so far.
 
I find it strange that even when inserting a valid datetime2(7) value, that it results in an CONVERT_IMPLICIT...
 
it has to get rid of the extra precision
 
Happens for this one too when inserting into the datetime2(7) defined column.
INSERT INTO MyTableFixed (CreateDate)
VALUES
  ('2023-03-30 11:24:03.123456')
  ;
[Expr1003] = Scalar Operator(CONVERT_IMPLICIT(datetime2(7),[@1],0))
 
12:29 PM
Yes, it's converting from a string
INSERT INTO MyTableFixed (CreateDate)
VALUES
  (DATETIME2FROMPARTS(2023,3,30,11,24,3,123456, 7))
 
🤦🏼‍♂️
 
1:10 PM
@Zikato Simple parameterization
INSERT INTO MyTableFixed (CreateDate)
VALUES ('2023-03-30 07:16:45.1234567')
OPTION (KEEP PLAN);
 
nothing simple about that parametrization
Mar 24 at 19:58, by Paul White
I see it's amateur hour again
 
2:08 PM
Wordle 649 3/6

🟨🟨⬛🟨🟩
⬛⬛🟨🟩🟩
🟩🟩🟩🟩🟩
 
well done!
It's great when you get so many letters in the first word
 
Thanks! 🙂 For sure. I feel like there was a decent chance I could've gotten it in 2 guesses with that start if I grinded the brain gears, but I was still way ahead the rest of my family who were averaging 5 guesses today lol
 
awesome!
 
@Zikato I don't think people would input a date like that.
 
@HannahVernon Completely random fact, but I just realized you and Paul's timezones are exactly a half day apart lol. (Assuming he's in the GMT+13 TZ in NZ. Quite possible he's in the other one, idk.)
I guess that makes good shifts for mod coverage.
 
2:18 PM
Aukland is 3:18am on Friday morning right now, and it's 9:18am Thursday here, so they're 18 hours ahead of us, but yes, it makes for good mod coverage when you consider that Paul only sleeps about 10 minutes a day (it seems)
Mar 24 at 21:51, by Paul White
In short, dates and times were a mistake
I'm in US CDT timezone 👀
 
Oh perhaps my mistake. You're not in the UK?
@HannahVernon ahh
 
@J.D. you're in US EDT I'm guessing
 
Yuppers
I did my math right, but my premise was wrong. Womp womp.
 
May 11, 2021 at 17:10, by Paul White
date math is hard
it seems there is a Paulism for every occasion
 
Like XKCD or The Simpsons, but more refined.
 
2:27 PM
@Lamak hey you got it, which is always good!
 
3:17 PM
Wordle 649 4/6*

⬜⬜🟨⬜⬜
⬜🟨⬜⬜🟨
🟨⬜⬜🟨🟩
🟩🟩🟩🟩🟩
Kind of a fun design today.
 
 
3 hours later…
6:00 PM
@JoshDarnell asteroids!
 
Why isn't there a flag for "This comment should be an answer"
3
 
6:21 PM
flag for a mod
i'm not sure this post lives up to its name
 
umm WHY THE HELL is the pseudocode I wrote for failover in that post?
 
@SeanGallardy there's a list of blog posts that were referenced at the end
 
@ErikDarling It's a direct copy and paste from a onenote page I made for HADR internals
not the whole post, just parts
(in 2016)
 
lol
hit JP up on teams
 
6:34 PM
I did
 
now hit him in real life
 
Many more problems would be solved, faster, if that were possible
 
6:53 PM
The comments never disappoint: dba.stackexchange.com/a/325409/41723
 
lol
the gam interval question surprised me
i thought that was well known across the internet
perhaps just an exercise in curiosity
 
@ErikDarling Same, it's quite easy to find without doing all that stuff. 1, it's documented. 2, a web search away.
Also, refresh that blog post, info is gone.
 
lol
bully
 
7:09 PM
👊👊👊
 
 
3 hours later…
10:07 PM
@ErikDarling pew pew!
 
10:29 PM
@JoshDarnell 💩💩
 

« first day (4468 days earlier)      last day (403 days later) »