Viewing 15 posts - 4,486 through 4,500 (of 59,067 total)
If you're using this function against multiple rows in a query, there's no way that I'd leave it as a scalar function.
October 7, 2021 at 3:33 pm
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...
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...
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...
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.
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...
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" ...
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.
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...
October 4, 2021 at 9:28 pm
My recommendation is ... TRY IT! See what happens. 😉
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...
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...
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...
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...
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...
October 4, 2021 at 3:00 pm
Viewing 15 posts - 4,486 through 4,500 (of 59,067 total)