Viewing 15 posts - 4,951 through 4,965 (of 59,089 total)
Actually, both OR and ISNULL are horrible for performance and should be avoided... when I say "should be avoided", I'm very close to saying "must be avoided at all costs"...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2021 at 3:12 am
My previous experience with SSIS was to determine a method to make table-to-table transfers like this work much more quickly. The way I did that was I stopped using SSIS...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2021 at 1:51 am
Now that you have a couple of answers, I have to ask... why do you need to do this? What will it be used for? What business purpose does it...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2021 at 1:49 am
You left out the name of the date column for the two tables you're talking about and you didn't include those names anywhere in the code. With that in mind,...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2021 at 1:10 am
A systems works with Windows Server 2012 R2 Standard On this system MS SQL-server 2014 (x86) Express version 12.0.2000.8 is installed. The service pack SP3 had to be installed....
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2021 at 12:26 am
I read your question a little differently than Grant and Jeff, so I just wanted to confirm what you were looking to do.
If I understand your question correctly,...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2021 at 8:46 pm
On the subject of "sometimes" quoted CSV's...
I totally agree that it shouldn't be necessary. MS has had more that 2 decades to make this "simple" stuff right as have a...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2021 at 8:19 pm
Let's peel one potato at a time. The first stop is the last item in your code...
(jh.ProdQty - jh.QtyCompleted > 0)
Do you see any problems with...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2021 at 5:02 am
As strange as it may strike some, I've not even downloaded DBATools, yet. I'm sure it's documented on the site one way or the other but, just to ask the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2021 at 4:20 am
Actually, the email system in SQL Server is quite robust and a copy of every email is stored in the msdb.dbo.sysmail_allitems table. In fact, it's a bit of a pain...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2021 at 5:23 pm
That would be an rCTE (Recursive CTE). If the recursion in based on incremental values and RBAR proceessing, a well written WHILE Loop will be faster and less resource intensive.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2021 at 2:00 pm
Apologies - I'm not sure what you mean - there is no cte in the above SQL statement.
Actually, there are 3. The first one starts right after the word...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2021 at 1:41 pm
WITH SubQuery AS
(
SELECTjh.Company, jh.JobNum, ja.AssemblySeq, jo.OprSeq, jo.OpCode,
CAST(CASE WHEN NOT jh.Date03 IS NULL THEN...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2021 at 1:37 pm
I do appreciate all of the feedback. However, you are fussing at the DBA who is the low man on the totem pole. AVPs and managers have already made...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 13, 2021 at 2:32 am
To be honest, this sounds like a case of the bad type of parameter sniffing.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 12, 2021 at 11:42 pm
Viewing 15 posts - 4,951 through 4,965 (of 59,089 total)