Viewing 15 posts - 3,631 through 3,645 (of 59,067 total)
In SQL Server 2017 (14.x) and later, it is possible to use the TRIM (Transact-SQL) function:
;WITH ctePC
AS ( SELECT expression
...
April 12, 2022 at 12:41 am
Lets break this down into sets.
You are combining two sets of data from this table:
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"?
April 11, 2022 at 7:26 pm
WITH ctePC
AS ( SELECT expression
FROM
( VALUES
...
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...
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...
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...
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 ...
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...
April 9, 2022 at 1:39 am
If you use a SAN, check the SAN documentation for a "SAN Snapshot". It's almost instantaneous.
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...
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...
April 7, 2022 at 5:16 pm
Heh.... must still be waiting for the first transfer to complete, eh? 😀
April 7, 2022 at 3:25 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...
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...
April 7, 2022 at 2:54 am
Viewing 15 posts - 3,631 through 3,645 (of 59,067 total)