Viewing 15 posts - 976 through 990 (of 22,184 total)
If you're exploring if stats are the problem, no, I wouldn't update first. Instead, look to the execution plans and see what the estimated number of rows is. Then, look...
February 1, 2022 at 2:57 pm
Additionally, remember that unique indexes drive choices by the optimizer but may never end up in sys.dm_db_index_usage_stats, so be extra cautious about using that as a reference for which indexes...
February 1, 2022 at 2:34 pm
For the love of Codd, store numbers in a number defined column and strings in string defined columns. Anything else is begging for trouble.
In this case, CAST is your...
February 1, 2022 at 2:15 pm
Yeah, it's the "why" really, for the most part.
Look, code any way you want to. It's not my place to dictate or declare anyone wrong, or evil or anything like...
January 31, 2022 at 9:53 pm
Hey all, a bit rushed this AM. Thanks for all the feedback. Appreciate.
And yeah, fully teaching the why's & how-fors & 'causes around stuff like SELECT * or ;WITH or...
January 31, 2022 at 2:16 pm
But isn't a semi colon required I the CTE is in a stored procedure?
100%. Absolutely. The semi colon is a statement terminator. Meaning, the previous statement has to have...
January 31, 2022 at 2:13 pm
So, you're jamming that semi-colon, which is a statement TERMINATOR, at the front of your WITH clause. Are you doing that on the second query? That could be the issue....
January 28, 2022 at 1:39 pm
And, you're hopping a pretty big gap, the cardinality estimation engine change that occurred in 2014. You need to plan for that just as you worry about the exact versions...
January 28, 2022 at 1:36 pm
You can't create a view from a stored procedure.
Why do you need to create a view from a proc? A view is something that should be created and left on...
January 27, 2022 at 12:33 pm
If a query was in a wait state, as soon as the blocking process clears, it will start to execute again, no manual intervention required. If the query in question...
January 26, 2022 at 2:35 pm
Page Life Expectancy is a crappy measure of performance. A common pattern is that sawtooth look that it gets. It grows & grows, then there's a data load, so the...
January 26, 2022 at 2:32 pm
If I understand what you're asking for, I think the OUTPUT clause is what you're looking for. That will allow you to know exactly which records were deleted from...
January 26, 2022 at 2:20 pm
If Member_MRN_lkupAllMBRNOs is a multi-statement table-valued user-defined function, that alone is going to cause pretty massive performance heads. Either switch it to being an in-line function, or eliminate the use...
January 26, 2022 at 2:17 pm
I agree with Johan, you want to take a look at Data Masker. It's probably the single most sophisticated tool for getting this done, and it will absolutely keep relations...
January 26, 2022 at 2:15 pm
That is an odd one. Are you under memory stress? Have you tried writing out to file? I generally don't recommend using the buffers because it does add considerable overhead...
January 24, 2022 at 2:59 pm
Viewing 15 posts - 976 through 990 (of 22,184 total)