Viewing 15 posts - 316 through 330 (of 5,842 total)
Eirikur's solution...
April 10, 2017 at 7:20 am
I actually like the multiple database notion for such scenarios. With a good naming scheme you can automate the heck out of it, including view (with UNION ALL) modification, data...
April 9, 2017 at 1:22 pm
1) Please provide create table statements, INSERTs for sample data, and expected outcomes that cover all logic paths.
2) Review OUTPUT in Books Online. I didn't read closely, but...
April 5, 2017 at 1:24 pm
April 5, 2017 at 1:23 pm
April 5, 2017 at 12:15 pm
Here's another example from my Common TSQL Mistakes session (originally from Plamen Ratchev):
Use tempdb
set nocount on
go
IF OBJECT_ID(N'Accounts', N'U') IS NOT NULL
DROP...
April 5, 2017 at 10:57 am
April 4, 2017 at 6:40 pm
The optimizer can do (almost) anything it wants with your query as long as boolean and algebraically it still gives the same output or effect. Predicates can be pushed up...
April 4, 2017 at 6:37 pm
If you have sufficient memory and poor IO then buffer pool cache could be some of the reason.
Best is to repeatedly run sp_whoisactive during any long-running processes to...
April 4, 2017 at 3:06 pm
Table variables (oh no!).
If that oh no was related to not being able to use table variables note that you REALLY shouldn't use them. No statistics means...
March 24, 2017 at 2:58 pm
I found that suddenly for a procedure the query execution plan changed and it...
March 24, 2017 at 2:56 pm
SSC.com's own Grant Fritchey wrote the book on the topic, and it is FREE:
March 24, 2017 at 8:03 am
There is plenty of CPU and Memory when this happens. So...
March 20, 2017 at 8:22 pm
Viewing 15 posts - 316 through 330 (of 5,842 total)