Viewing 15 posts - 1,351 through 1,365 (of 7,608 total)
Yeah, those scalar ops can be ignored as far as performance goes, as long as they aren't repeated a million times or so.
August 4, 2021 at 8:15 pm
I would think the subquery would (almost) certainly be able to take advantage of the fact that the query only needs to lookup a single Shipment_No, rather than processing all...
August 4, 2021 at 8:06 pm
If you don't need the parameters, or they require too much overhead to log, then don't log them.
Just capture the start time, as a datetime2, and the proc name (or...
August 4, 2021 at 5:19 pm
Thanks for that, now I'm clear.
Yeah, I think the first query you posted should do that.
As to performance, make sure the s and p tables have an index...
August 4, 2021 at 5:02 pm
Thanks for that, now I'm clear.
Yeah, I think the first query you posted should do that.
As to performance, make sure the s and p tables have an index on Shipment_No...
August 4, 2021 at 4:42 pm
If I understand your requirements correctly, the code below will do what you want.
As to performance, make sure the s and p tables have an index on Shipment_No...
August 4, 2021 at 3:58 pm
If I understand your requirements correctly, the code below will do what you want.
As to performance, make sure the s and p tables have an index on Shipment_No and that...
August 4, 2021 at 3:40 pm
A single column with all of the parameters? Could be bad idea, potentially lots of overhead, depending on how it's done.
.
The parms and values where concatenated into...
August 3, 2021 at 9:53 pm
Add code to the start of the proc to log to table. While you're at it, you might as well log all the parameter values as well, if...
August 3, 2021 at 8:00 pm
You could automate the change easily enough (including grabbing the parameters), but I understand the reluctance to change all the procs. You would likely want to capture the previous modify_dates...
August 3, 2021 at 7:15 pm
Add code to the start of the proc to log to table. While you're at it, you might as well log all the parameter values as well, if you have...
August 3, 2021 at 6:56 pm
Yeah, EXCEPT should to that just fine:
SELECT * /*...list_of_cols...*/
FROM dbo.today
EXCEPT
SELECT * /*...list_of_cols...*/
FROM dbo.yesterday
August 3, 2021 at 6:55 pm
Use NOT EXISTS when possible, as it allows for better execution plans.
August 2, 2021 at 5:09 pm
Viewing 15 posts - 1,351 through 1,365 (of 7,608 total)