Viewing 15 posts - 3,256 through 3,270 (of 22,214 total)
April 6, 2018 at 10:10 am
You can create a trigger on a view. Here's the documentation.
Instead of a trigger, I'd suggest a design that let's you add jobs. What if they...
April 6, 2018 at 9:14 am
Certainly replacing the table variable with a temp table will likely lead to improvements as will the code that Chris is suggesting.
However, that doesn't explain why you're seeing...
April 6, 2018 at 7:21 am
Lots and lots of scans. Despite a large number of filters, you're getting scans all over the place. Ignoring the fact that you don't have clustered indexes, the indexes you...
April 6, 2018 at 7:15 am
Why not use Extended Events. You're on 2016. They're better and generally more accurate.
April 5, 2018 at 12:14 pm
April 5, 2018 at 9:29 am
To get radical differences in behavior, something has to be different. Did you check the execution plans as I suggested? Are they different? If so, are the parameters that compiled...
April 5, 2018 at 7:31 am
Generally, just delete the data. It's the best approach. Sometimes, breaking the data into chunks can help. Here's an article to give you some ideas.
April 5, 2018 at 6:27 am
There is absolutely ZERO way to tune a query that is selecting all columns and all rows. You can't do it.
What you can do, is tune the hardware...
April 5, 2018 at 6:22 am
Sure, this kind of thing happens all the time. Have you compared execution plans, the one running fast the one running slowly? Are they the same? Probably not. What are...
April 5, 2018 at 6:17 am
April 5, 2018 at 6:14 am
When you create a stored procedure, it doesn't validate the existence of objects, just syntax. It's when you execute the code that you hit the problems. So yeah, CREATE or...
April 5, 2018 at 6:09 am
Honestly, a single shrink of the database, I wouldn't sweat it too much. It's repeated, even scheduled, shrinks that lead to all sorts of problems. One time, one shrink, no...
April 4, 2018 at 12:33 pm
Viewing 15 posts - 3,256 through 3,270 (of 22,214 total)