Viewing 15 posts - 1,981 through 1,995 (of 59,082 total)
As a bit of a sidebar, this uses 31% fewer reads, which will come in handy for when the cross joined tables are larger...
WITH
cteProduct...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2023 at 6:22 am
Never mind... post deleted because it wasn't necessary. The OP figured it out.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2023 at 5:43 am
i think information schema is better because col_length is a function call and finally it would go to sys.objects or all_objects or information schema it self.
This is what I...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2023 at 4:55 am
Got the first post on a page again... and again, it's not showing up until another post (this one) is made.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2023 at 4:14 am
According to Paul White (and what I heard early on when they first started meta-caching of Temp Tables), dropping the tables does NOT prevent caching of Temp Table meta-data.
https://sqlperformance.com/2017/05/sql-performance/sql-server-temporary-object-caching
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2023 at 4:13 am
Ha! I may have overly played up the "scary" part of the scarydba occasionally.
I apologize. I didn't intend to embarrass, my dear ol' friend.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2023 at 4:01 am
Using your code as a model, you can make it a bit shorter...
IF COL_LENGTH('dbo.abc', 'r1') IS NULL
EXEC ('ALTER TABLE abc ADD...--Jeff Moden
Change is inevitable... Change for the better is not.
February 9, 2023 at 1:16 am
That’s why I like you Jeff, you’re such a smart guy 😍🥳
Heh... if I were really smart, I'd just up...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 6:40 pm
That’s why I like you Jeff, you’re such a smart guy 😍🥳
Heh... if I were really smart, I'd just up and retire. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 6:30 pm
Post deleted.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 4:46 pm
typing while not thinking. This is fixed. The no_truncate option is needed
None of us has ever done that before, right? 😀 😀 😀 Thanks, Steve.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 4:30 pm
Forget leading commas. Let's debate leading semi-colons. @=)
This could start a flame war! I've seen instances of otherwise-seasoned coders on here using the dreaded
;WITH CTE...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 4:20 pm
That’s why I like you Jeff, you’re such a smart guy 😍🥳
Heh... if I were really smart, I'd just up and retire. That would probably...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 4:13 pm
Thanks, Jeff, for your reply and I am happy that you are paying more attention in security matters. Yes, this command is being embedded in a toll, contains security...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 4:06 am
I'm going to venture out and say that what you have as the correct answer isn't the correct answer. It doesn't even appear on the page you referenced.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2023 at 3:57 am
Viewing 15 posts - 1,981 through 1,995 (of 59,082 total)