Viewing 15 posts - 3,676 through 3,690 (of 59,098 total)
All true and thanks for posting the examples.
Just to be sure though (for any newbies that might be reading this), that's not what I was talking about in my previous...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2022 at 5:07 pm
Lordy. I agree with the others. Using a decade old version of SQL Express instead of the current version or at least previous version of SQL server of the SQL...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2022 at 4:57 pm
Hi Tony, and welcome aboard!
Just to add to your explanation, a CROSS JOIN can also be used as a massive, super fast "Pseudo Cursor" to replace <<insert drum roll here>>...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2022 at 1:14 am
While this is all very interesting, I have to ask the question... Have you actually called the software vendor to tell them of your problem and to see what they...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2022 at 12:56 am
Even with the columnstore thing, the original issue on this thread has never been solved. What made the old query suddenly perform so poorly when the database was moved to...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2022 at 12:47 am
In SQL Server 2017 (14.x) and later, it is possible to use the TRIM (Transact-SQL) function:
;WITH ctePC
AS ( SELECT expression
...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 12, 2022 at 12:41 am
Lets break this down into sets.
You are combining two sets of data from this table:
--Jeff Moden
Change is inevitable... Change for the better is not.
April 11, 2022 at 7:29 pm
The code is simple enough so why not do it in a UNION ALL between two queries to get rid of the "OR"?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 11, 2022 at 7:26 pm
WITH ctePC
AS ( SELECT expression
FROM
( VALUES
...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 11, 2022 at 7:20 pm
I don't know but it sounds like the source of the files never deletes the old files. With that, what are you doing about identical entries every time you run...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 11, 2022 at 7:06 pm
A friend of mine owns a bakery. His data needs are pretty simple, so in theory I could use Access (shudder)... It's basically Recipes, Recipe Ingredients, Ingredient Purchases, and...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 11, 2022 at 7:00 pm
I'm running thru folders where output from job processing happens and sometimes the product we use to run\schedule jobs doesn't detect and error condition even though the SP or...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 11, 2022 at 2:07 am
This script works, but I would like to add a few more things to the process, and need some help.
1) Search multiple folders 2) Search for multiple strings patterns ...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 10, 2022 at 11:35 pm
This is what worked for me, but any rooms for improvement or suggestions is gratefully appreciated:
SELECT account, name, street, due_date FROM my_table WHERE CAST(CONVERT(VARCHAR,due_date,102) AS DATETIME) = (
case when...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2022 at 1:39 am
If you use a SAN, check the SAN documentation for a "SAN Snapshot". It's almost instantaneous.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 9, 2022 at 12:55 am
Viewing 15 posts - 3,676 through 3,690 (of 59,098 total)