Browse by Tags
All Tags
»
performance
(
RSS
)
SQL Server 2005
SQL Server 2008 R2
Tips and Tricks
23 February 2011
Slow in the app, fast in SSMS
Users complain about a timeout but when you run the exact same query in SSMS it runs in a flash. Sounds familiar? I've been baffled by this before. I worked out that I was getting a different query plan in SSMS because of different SET OPTIONS but, having dealt with that, I was then stuck with parameter...
Read More...
14 July 2010
Be careful with table variables
I just looked into a poorly performing stored procedure and brought it down from over 4 minutes to under 4 seconds by making one simple change: converting a table variable into a temporary table. What's interesting is that there were only about 20,000 rows of about 1,100 bytes each in the table variable...
Read More...
18 March 2010
Have you really fixed that problem?
The day before yesterday I saw our main live server's CPU go up to constantly 100% with just the occasional short drop to a lower level. The exact opposite of what you'd want to see. We're log shipping every 15 minutes and part of that involves calling WinRAR to compress the log backups before...
Read More...
16 February 2010
Cursor bad, set-based good
I just had another reminder, as if one was needed, that a cursor should be your last resort to get something done. I was looking to shave some time off my data warehouse build job and noticed a step that looked like it was taking a lot longer than I would expect. I found it was doing 12 cursors in a...
Read More...
Home
Contact
DavidWimbush
Observations of a SQL Server DBA and Reporting & BI developer.
RSS
Atom
Comments RSS
Recent Posts
Strange gotcha with column names
SQL Server 2012 edition comparison details are published
Denali Side-by-Side Gotcha
An annoying problem with Nulls
Failing report subscriptions
Tags
Analysis Services
Backup & Restore
BI
Books
Community
Database Mail
Dependencies
Disaster Recovery
Functions
How Not to Do It
Indexes
Log Shipping
Management Studio
Performance
Reporting Services
Security
SQL Down Under
SQL Server 2005
SQL Server 2005 tempdb
SQL Server 2008
SQL Server 2008 R2
SQL Server 2012
SQLAgent
SQLBits
Strange but True
Tips and Tricks
Transaction Log
Upgrading
Archives
December 2011 (1)
November 2011 (1)
October 2011 (1)
August 2011 (1)
June 2011 (1)
April 2011 (1)
March 2011 (4)
February 2011 (1)
January 2011 (1)
December 2010 (2)
November 2010 (1)
September 2010 (2)
August 2010 (1)
July 2010 (4)
June 2010 (3)
May 2010 (4)
April 2010 (3)
March 2010 (3)
February 2010 (1)
December 2009 (2)
November 2009 (5)
October 2009 (2)
September 2009 (2)
August 2009 (1)
July 2009 (4)
June 2009 (4)
May 2009 (2)
Search
Go
Navigation
Home
Blogs
Photos
Downloads