Viewing 15 posts - 3,646 through 3,660 (of 59,067 total)
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
My apologies, COVID delayed my progress.
Start working slowly.
Regards
RR
You came down with COVID? Sorry to hear and glad you're still around. I know I sound like a Grandma but take...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2022 at 12:44 am
I'll start off by saying that putting columns in functions in the WHERE clause is almost always going to cause full table or index scans and that's going to kill...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2022 at 5:16 pm
I am trying to restore prod backup to test instance, so overwriting it should not be a problem.
Ok... first of all, remember that none of the privs you established...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2022 at 3:04 am
To be honest, I don't trust any of the estimates. I've never had them be close for me.
I'm happy that everything eventually came back for you. Sounds like you're having...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2022 at 2:54 am
I'm looking at a part of what you posted..
PatID StartDate EndDate Type of Line Insert Dt Remv Dt Pt...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2022 at 2:49 am
I've always been concerned but, as I get older, I seriously worry about the medical world and hospitals and the people in them when I see things like the following...
--Jeff Moden Change is inevitable... Change for the better is not.
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
April 7, 2022 at 12:01 am
Viewing 15 posts - 3,646 through 3,660 (of 59,067 total)