Viewing 15 posts - 691 through 705 (of 2,644 total)
Yep... if they can make stuff like that clickable, why can't they make it codeable? The answer is, they can but haven't,
Yes, that would be a good enhancement to...
July 27, 2022 at 7:42 pm
If you right click the table in SSMS you can "Script Table as..." to generate a CREATE TABLE script.
Then if you right click the table you can generate an INSERT...
July 27, 2022 at 6:52 pm
I stand to be corrected, but the pattern appears to be as follows
July 25, 2022 at 3:01 pm
I work on sql server 2019 i face issue i need to give unique number to every group of numbers without using string aggreagte or stuff
original table as below...
July 25, 2022 at 10:56 am
Can you just create a linked server in SSMS, then just do an "insert into select * from" command in SSMS?
If you cannot create a linked server then, if it...
July 15, 2022 at 2:14 pm
I'm not sure what you are trying to do but if you install this function: https://www.sqlservercentral.com/scripts/a-daterange-table-valued-function
Then this code might do the job:
Declare @StartDate Datetime
Declare @EndDate Datetime
Select @StartDate...
July 14, 2022 at 10:35 pm
You could try this script: https://www.sqlservercentral.com/scripts/get-file-sizes-of-database-files-and-free-space-on-disk
July 13, 2022 at 7:49 pm
I'm not really sure what you want to do. Do you want to group rows by "Time"?
SELECT ss.StoreCode,
ss.ProductCode,
...
July 13, 2022 at 7:46 pm
I would just shrink the files. If your are on a SAN disk you might not even notice any performance degradation. If you do you might just need to rebuild...
July 10, 2022 at 7:29 pm
Can you provide a sample of how you are calling the procedure and what is going into the parameters?
July 10, 2022 at 7:08 pm
Yeah, Cost Threshold for Parallelism is way too low. That is likely causing the crazy spikes in response/CPU times.
I think 5 is the out of the box default setting.
I've...
July 6, 2022 at 9:21 pm
I wonder what Jonathan's parallelism settings are, and other SQL settings that might affect the run times. Some of those results are definitely out of place.
I take it you...
July 6, 2022 at 6:53 pm
I've run it again after a reboot and closing the Chrome, the figures are more consistent but my first method is faster by a long way (on my desktop). For...
July 6, 2022 at 9:20 am
For Question #1, Scott's method is the fastest. Don't take my word for it, though.
These are the results from my machine
***********************************************************************************************************************
===== Scott's Code) =====
DBCC execution...
July 6, 2022 at 1:21 am
Viewing 15 posts - 691 through 705 (of 2,644 total)