Viewing 15 posts - 91 through 105 (of 1,219 total)
Oh, where is my crystal ball again? Couldn't you at least tell us on which column you had the non-clustered index? Even better, share the actual query plans for the...
November 3, 2020 at 9:59 am
So I gave some hints in my post. I also have an article on my web site where I discuss parameter sniffing in more detail, http://www.sommarskog.se/query-plan-mysteries.html.
October 11, 2020 at 9:35 am
Yes, with this pattern you can get problems with parameter sniffing. Say that you first run the SP with @kind = 1 and you pass @startday and @endday as NULL....
October 10, 2020 at 4:54 pm
I can't see any relation to your original question here. You should probably have started a new thread.
There is nothing wrong with the pattern above. In fact, I would say...
October 10, 2020 at 9:38 am
You don't need to, but you can change the CATCH handler to:
BEGIN CATCH
ROLLBACK
; THROW
END CATCH
; THROW reraises the error message exactly...
October 8, 2020 at 6:41 am
Obviously, we cannot answer any questions without knowledge of what is going on. Wait until you have the issue again and use my beta_lockinfo and share the output so we...
October 7, 2020 at 12:46 pm
Yes, string_agg is much more straightforward to use.
There are a few things that have been removed since SQL 2008, but not a lot. The COMPUTE BY clause, which I hope...
October 7, 2020 at 6:37 am
There is one alternative. But it is worse than the CLR. You can call extended stored procedures from SQL functions, so you can call xp_cmd.... I think I stop there.
(I...
October 6, 2020 at 6:45 pm
So have you tried troubleshooting the issue with my beta_lockinfo yet? http://www.sommarskog.se/sqlutil/beta_lockinfo.html.
There is no one here can answer what is going on without access to your system - or...
October 6, 2020 at 1:55 pm
If you look at my example, you see that I have a binary column, you have a string column. When you encrypt data with any of the cell-level encryption methods,...
October 5, 2020 at 4:29 pm
Why are you starting a new thread on the same question?
Why lock on one particular table is not released(in our case extended property update query)?
Do you seriously believe that anyone...
September 30, 2020 at 11:06 am
Your concerned about the performance in .NET? Didn't you complain that the query you had crafted from Brian's input was very slow? Or were you able to resolve that?
My position...
September 29, 2020 at 8:01 pm
I only write C# left-handedly, so I may not be the best person to ask. Then again, how difficult can it be? You have a data table - transform it...
September 29, 2020 at 7:00 am
Scott, with that kind of stack dump, it is clear that "IT Researcher" is working from a GUI and not a query window. In any case, the error details makes...
September 28, 2020 at 3:23 pm
You can use my beta_lockinfo to find out about locks and blocking in the system, http://www.sommarskog.se/sqlutil/beta_lockinfo.html.
September 28, 2020 at 11:37 am
Viewing 15 posts - 91 through 105 (of 1,219 total)