Viewing 15 posts - 541 through 555 (of 2,645 total)
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
You could try using sqlcmd instead of SSMS
February 10, 2023 at 1:59 am
Have you tried using both the -m and -f flags?
sqlserver.exe -m -f
February 10, 2023 at 12:55 am
You could try this:
Let me know if it works.
February 9, 2023 at 11:55 pm
What I find extremely frustrating is when someone writes SQL code that joins multiple tables without prefixing the column names with their originating table or alias using dot notation. This...
February 8, 2023 at 3:51 pm
I would not prefix a view with tbl. In any case I rarely use views in an OLTP environment. I do make extensive use of them...
February 8, 2023 at 3:42 pm
I would not prefix a view with tbl. In any case I rarely use views in an OLTP environment. I do make extensive use of them in my...
February 8, 2023 at 3:05 pm
Viewing 15 posts - 541 through 555 (of 2,645 total)