Viewing 15 posts - 1,171 through 1,185 (of 5,841 total)
Often a query as complex (and potentially WICKEDLY suboptimal) can take many hours to tune. Fortunately for you there seems to be a magic-bullet: and vru.Full_User_Name0 IN (@Assignee)
So with...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 14, 2016 at 7:49 am
If you want to monitor SQL Server or diagnose MANY issues, you MUST get Glenn Berry's SQL Server Diagnostics Scripts.
here is a spiffy query from there to see CPU history...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 14, 2016 at 7:38 am
Eirikur Eiriksson (4/12/2016)
TheSQLGuru (4/12/2016)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 12, 2016 at 2:31 pm
Make sure tempdb is identical, and beefy!!
I had a client that switched from Win 2012 to 2012R2 server and had a BAD experience with it and SQL Server. They actually...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 12, 2016 at 2:27 pm
Argenis Fernandez has some great stuff out there about how to make checkdb run faster, along with Paul Randal.
Check patch level. There were numerous fixes for checkdb.
My question is...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 12, 2016 at 12:47 pm
The default of 5 for cost threshold for parallelism is almost universally too low. I don't know of a formula for setting a higher value, but I know pretty much...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 12, 2016 at 12:45 pm
Like I said, you have to have enough room to write the checkpoint stuff. 🙂
tlog of tempdb is more like it.
LOTS of potential culprits here. Got to observe...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 8, 2016 at 2:10 pm
I don't think CHECKPOINT will help with a full tempdb. Maybe a transaction log (but likely not then unless there is enough room to write a bit of stuff about...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 8, 2016 at 12:31 pm
It is critically important to gather as much forensics as possible before pulling the plug. Often with good diagnosis the sledge-hammer approach isn't even necessary. But regardless, if you...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 8, 2016 at 11:45 am
Sergiy (4/7/2016)
Siten0308 (4/7/2016)
so i am inserting 1014193 rows, and it made a 175gig temp db data files grow
Every record must fit into a single data page.
A data page is...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 8, 2016 at 8:02 am
Excellent!
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 8, 2016 at 7:57 am
select from your hours table
left join to your job status table
use CASE WHEN js.something is null then 'failed' else 'succeeded' end as jobstatus
this works because on the left join...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 7, 2016 at 12:56 pm
Well, if you are duplicating them in a temp table unnecessarily then they could be an issue. Of course updating rows isn't free either, especially when you make them larger...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 7, 2016 at 12:08 pm
No worries mate. I sure wish those were on by default!
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 7, 2016 at 11:03 am
As long as the varchar(5000) fields don't actually have a bunch of stuff in them then they won't take up space. And if they DO have stuff in them, then...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
April 7, 2016 at 10:59 am
Viewing 15 posts - 1,171 through 1,185 (of 5,841 total)