Viewing 15 posts - 4,501 through 4,515 (of 59,069 total)
Also, if you're only allowing for Windows logins by users and apps (and I do recommend that), you can use sp_ValidateLogins to find any logins on SQL Server that have...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2021 at 3:29 pm
My question would be... Do you actually need AG or would a Clustered Server be adequate? I know too many people that are using AG just because "it's too cool...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2021 at 3:07 am
We have a scalar function that is used to add a specific number of business days to a date however to dev who wrote it has gone overkill on...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2021 at 3:01 am
Setup a "Login Trigger". Be REALLY careful because, if you do it wrong", even you won't be able to login.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2021 at 2:58 am
It's amazing what people will do. Yep... Jonathan's method for tracking page splits is awesome.
But what are YOU going to do with the information? Ah... use it to identify which...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 7, 2021 at 2:55 am
Grant,
Got it. Good advice about testing from all.
And it looks like I can us ALTER to create a non-clustered index after the table was created.
No. You don''t use "ALTER" ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 6, 2021 at 3:10 am
But, in this case, having the Clustered Index on the UserID is probably perfect.
You also won't need a non-clustered index on UserID then, either.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 5, 2021 at 3:44 am
I agree there. "It Depends". Concatenation typically is quite slow but might be worth it here. I have also run into performance issues with cCA's (Cascading Cross Apply's) before but...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 9:28 pm
My recommendation is ... TRY IT! See what happens. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 6:59 pm
Yep, there's not much you can do to speed it up. However, you can be sure to shrink only the specific file(s) you need to shrink, not the entire...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 6:19 pm
It's also the case when you refer to the result of a cross apply multiple times the calculations inside of the cross apply are expanded multiple times.
I agree that...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 4:26 pm
You don't need a table valued function. A view will do the job:
"It Depends". I've found that a whole lot of folks end up writing code that...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 3:42 pm
Apologies for not including more detail on the issue. The error is"An INSERT EXEC statement cannot be nested."
I tried changing the table variable to a temp table but still...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 3:15 pm
It partially depends on WHY you have so much free space in your database.
If a lot of old data has been deleted and, like most people, end up doing just...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 3:00 pm
You don't need a table valued function. A view will do the job:
"It Depends". I've found that a whole lot of folks end up writing code that causes all...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 4, 2021 at 2:49 pm
Viewing 15 posts - 4,501 through 4,515 (of 59,069 total)