Viewing 15 posts - 1,156 through 1,170 (of 59,091 total)
Since you're not using SQL Server (based on the INT4 datatypes you used), it may be that the RDBMS you're using doesn't allow CTEs (Common Table Expressions),...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 13, 2023 at 2:00 pm
The intention was to know the reason do we need to bother about fragmentation for tables with 10's or few 100's of pages. I see dev team...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 8:18 pm
I agree with Phil. Posting inserts to populate the test table with data will help a whole lot.
Also, the code you posted isn't from SQL Server but, since...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 7:51 pm
And, sorry... I was reading and answering from top down. You and the OP got all this together.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 3:12 pm
If you just want an id you can just add ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) id, as a column to the query to get a sequential id column....
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 3:10 pm
There is also JSON download in that link:
But, not the ID column the OP is looking for.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 3:03 pm
Simple question.
Who is the Brent Ozar of cloud computing ie all you need to know about SQL management and options in the cloud the does and don't of DBA...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 2:54 pm
Step 1 would be to get into the habit of using the 2 part naming convention. That doesn't have so much to do with performance in this case (although there...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 2:51 pm
I agree with Phil. Posting inserts to populate the test table with data will help a whole lot.
Also, the code you posted isn't from SQL Server but, since you posted...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 2:24 pm
Sorry... second look at the code I posted said it was wrong and took it down.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 1:35 pm
The intention was to know the reason do we need to bother about fragmentation for tables with 10's or few 100's of pages. I see dev team asking question...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 12, 2023 at 1:27 pm
If you are only moving the application databases (not the system databases). You can just detach the databases, move the database files to a different location then...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2023 at 9:36 pm
Just remember... your favorite bloggers may not actually be correct. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2023 at 9:33 pm
My recommendation is this... go to all of the BBFAATT (a "Moden-ism for Books, Blogs, Forums, Articles, AI, Talks, and 'Tubes and is pronounced as "bee-bee-fat" and can be bleated...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2023 at 8:32 pm
As a bit of a sidebar, renaming backup files destroys the ability to use the backup information stored in MSDB for research. If you want to name something, it should...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 11, 2023 at 7:48 pm
Viewing 15 posts - 1,156 through 1,170 (of 59,091 total)