Viewing 15 posts - 691 through 705 (of 2,645 total)
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
You could paste the results into Excel and colour the results with an Excel formula.
July 22, 2022 at 7:43 pm
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
ok, that's not what I thought you meant. I thought you meant flip all the bits.
This works for 0 and 1:
DECLARE @smallint smallint...
July 5, 2022 at 11:35 pm
Viewing 15 posts - 691 through 705 (of 2,645 total)