Query performance and table variables
Technorati Tags: Performance Frequently, we see our customers using table variables in their stored procedures and batches and experience performance problems. In general, these performance problems...
View ArticleSlow query performance because inaccurate cardinality estimate when using...
We have a few customers who reported that some of their queries run slower following upgrade from SQL Server 2000 to SQL Sever 2005, 2008 and 2008 R2. Specifically, queries experiencing the issue...
View ArticleError 17953 - SidePageTable::Init() DeviceIoControl() : Operating system...
When attempting to run dbcc checkdb or create a snapshot database you may encounter the following errors when using a UNC location that does not support all sparse file operations. 2010-09-21...
View ArticleCase of using filtered statistics
Technorati Tags: Performance SQL Server 2008 introduces a new feature called filtered statistics. When used properly, it can dramatically improve cardinality estimate. Let’s use an example below to...
View ArticleQuery performance and plan cache issues when parameter length not specified...
We recently worked with a customer who reported his update to a linked server table runs very slow. This only happens when he doesn’t specify the character parameter length in the .NET code. This...
View ArticleNumbers are better than letters…
Back in a post from May (http://blogs.msdn.com/b/psssql/archive/2010/05/30/don-t-touch-that-schema.aspx), I reported that SSRS referenced fields by index instead of by name in code for performance...
View ArticleHow It Works: Extended Event (sqlos.wait_info*)
I was posed a good question today about how the wait_info* event works in SQL Server 2008. The easiest way for me to answer the question was to prove the behavior. using WAITFOR DELAY it shows the...
View ArticleQuery Performance and multi-statement table valued functions
Lately I worked with a customer to help tune his query involving multi-statement table valued function. When using table valued functions, you should be aware of a couple of things First, there are...
View ArticleHow It Works: SQL Parsing of Number(s), Numeric and Float Conversions
SQL Server and other documentation have always indicated that float values are not precise and comparison or conversion of them can be problematic and imprecise. Working on a recent customer...
View ArticleCSS once again comes to the SQL PASS Summit
I’m proud once again to be a part of our CSS team coming to the US SQL PASS Summit next week in Seattle. As in the past, our team will be speaking at a pre-conference seminar, main conference talks,...
View ArticleThe week that was PASS…
I’m sitting in SEATAC Airport waiting for my flight, so I thought now would be a great time to write up some thoughts and share some experiences of my week at PASS. There was a ton of great...
View ArticleMicrosoft Atlanta Begins….
There is an incredible level of satisfaction in being able to turn an idea into something real. Something valuable. Years go at Microsoft I talked to my colleagues about a vision where we could...
View ArticleHOW IT WORKS: IO Affinity Mask - Should I Use It?
The IO Affinity mask question has come across my desk several times in the last week so it is time to blog about it again. The IO Affinity mask is a very targeted optimization for SQL Server. I have...
View ArticleAlwaysON - HADRON Learning Series - What Is HADRON?
I have been reviewing and working on supportability aspects of HADRON (High Availability Disaster Recovery - AlwaysON) for months and I am kicking off a blog post series related my 'HADRON Learning...
View ArticleAlwaysON - HADRON Learning Series - New DMVs
As I have been reviewing and learning about HADRON I have found a great wealth of information exposed in the DMVs. I have pulled together a starting, entity relationship diagram and the HADRON PMs...
View ArticleAlwaysON - HADRON Learning Series - Running DBCC On A Secondary
HADRON allows DBCC to be executed directly against a secondary replica. The DBCC can be run online, as is, or with TABLOCK if the HADR activity is suspended so the DBCC can acquire the database lock...
View ArticleHow It Works: Error 18056 - The client was unable to reuse a session - Part 2
I have had several questions on my blog post:...
View ArticleTracking database recovery progress using information from DMV
Technorati Tags: Engine,SQL Server 2008 You must be very familiar with the database recovery related messages printed to the SQL Server Error log. These come in very handy when troubleshooting issues...
View ArticleDiscussion About SQL Server I/O
I received a request today for help on how SQL Server I/O behaves. As I was writing up my e-mail response I thought it would also make an interesting blog post. Sent: Friday, January 07, 2011 2:53 AM...
View ArticleSQL Server 7.0: “She sure was a good ship”….
In December of 1997, I was asked by my manager whether I would like to visit Seattle to spend time with the SQL Server Development team as they built our next generation of the database engine, SQL...
View Article