Viewing 15 posts - 316 through 330 (of 5,841 total)
Eirikur's solution...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 5, 2017 at 1:24 pm
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 5, 2017 at 1:23 pm
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 5, 2017 at 10:57 am
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
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...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 24, 2017 at 2:58 pm
I found that suddenly for a procedure the query execution plan changed and it...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 24, 2017 at 2:56 pm
SSC.com's own Grant Fritchey wrote the book on the topic, and it is FREE:
SQL Server Execution Plans, 2nd Ed.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 24, 2017 at 8:03 am
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 23, 2017 at 9:25 am
There is plenty of CPU and Memory when this happens. So...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 20, 2017 at 8:22 pm
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 20, 2017 at 12:28 pm
Viewing 15 posts - 316 through 330 (of 5,841 total)