Viewing 15 posts - 211 through 225 (of 59,076 total)
It would be easier if the first row were numbered "0" instead of 1 so that we could use modulo all by itself to do this but, it can still...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 10:32 pm
@jeffmoden I have not spent much time on SSC for a good few years. Searching for something else, I came across this article (and the follow up) written by...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 4:36 pm
Hi, excellent post, I have taken it and put it into practice, and it works very well for me to redo the whole nested set, But I want...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 4:34 pm
Just to ask the question, I haven't tested any of the solutions and so this question is directed at Reh23 ...
Do any of the solutions, so far, do what you...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 4:18 pm
First of all, please stop posting graphics for the test data. See the article at the first link in my signature line below for why and one method for...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 4:17 pm
Thanks Jeff. Its SQL Server 2017.
Your other post is on an SQL Server 2022 forum.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 4:13 pm
Just to be sure, I would never obfuscate numeric data. If it's worth protecting, it's worth being properly encrypted.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 4:11 pm
Hi SSC team,
I wanted to leave the answer here just in case anyone else needs it. This works. Only caveat is that you need to use dts.vaiables...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 2:34 am
I use IIF a whole lot to replace the longer CASE expression in CROSSTABs. It just makes for shorter code when there are only Yes/No conditions.
I have used some of...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 10, 2025 at 2:26 am
First of all, please stop posting graphics for the test data. See the article at the first link in my signature line below for why and one method for producing...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 9, 2025 at 5:42 pm
Just to be sure... you're in an SQL Server 7/2000 forum... which release of SQL Server are you actually using?
And, yeah... It's really important because there's a whole lot missing...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 9, 2025 at 5:30 pm
Hi SSC team,
I wanted to leave the answer here just in case anyone else needs it. This works. Only caveat is that you need to use dts.vaiables instead of...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 9, 2025 at 4:20 pm
thx jeff. eventually i did do the divide and conquer thing. it took the query down from 6 minutes to 19 seconds. i turned it over in that state...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 9, 2025 at 1:12 am
Shifting gears to the dark side, it may be that the query was written in such a fashion that the optimizer just can't figure out if an index would help...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 8, 2025 at 4:17 pm
Ok... so you don't need the xp_CmdShell example then.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 6, 2025 at 4:06 pm
Viewing 15 posts - 211 through 225 (of 59,076 total)