Viewing 15 posts - 541 through 555 (of 2,648 total)
If you get your answers from ChatGPT you should say so.
Ha! I was just coming down to say something similar. I suspect we're going to be...
February 14, 2023 at 1:02 pm
Dealing with a super huge table that is partially partitioned can be a challenging task for many database administrators and developers. However, with the right approach and tools, you...
February 14, 2023 at 12:17 pm
You need to first work out which query is taking the longest then look at optimising that.
You could put some logging in the query to write to a table how...
February 14, 2023 at 1:29 am
Where are the IO stats?
**************************************** cross tab
Table '#TestTable'. Scan count 5, logical reads 40651, physical reads 0, page server reads 0, read-ahead reads 0, page server read-ahead reads 0,...
February 13, 2023 at 11:20 pm
Thank you all!
Sorry but I made a mistake on my original posting. Revised DATA representation is below

IF OBJECT_ID('tempdb..#TestTable') IS NOT NULL
... February 13, 2023 at 9:41 pm
Set up some data (you should have done this when asking the question)
DROP TABLE IF EXISTS #temp
GO
SELECT *
INTO #temp
FROM (VALUES (1, 'ON_001', '12/5/2022'),
...
February 13, 2023 at 6:52 pm
Here is my attempt:


That worked and is reasonably efficient.
February 13, 2023 at 4:54 pm
You can just schedule the job to run every 5 minutes starting at 7 am until a time when you say the file has failed to arrive.
February 13, 2023 at 1:22 am
Freakin' awesome test post, Jonathan. Well done, good Sir!!! This also proves something else... code written to do a specific task is highly likely to blow generic methods out...
February 12, 2023 at 4:46 pm
You could consider using DBCC CHECKDB with the "PHYSICAL_ONLY" option, which only performs a physical consistency check and not a logical consistency check. This can significantly reduce the memory requirements...
February 11, 2023 at 4:56 pm
I think you can beat any splitting function by splitting in code with no need for aggregation.
As there are only a maximum of 4 values you can safely...
February 11, 2023 at 3:09 am
Talking about ChatGPT, has anyone seen this one yet? https://www.cnn.com/2023/02/08/tech/google-ai-bard-demo-error/index.html
<headdesk>
Yes... and they're making an big deal about it. ChatGPT is constantly providing incorrect answers about code...
February 10, 2023 at 5:58 pm
I think you can beat any splitting function by splitting in code with no need for aggregation.
As there are only a maximum of 4 values you can safely use this...
February 10, 2023 at 5:42 pm
Viewing 15 posts - 541 through 555 (of 2,648 total)