Having performance issues with table variables? SQL Server 2012 SP2 can help!
In a previous blog, I talked about how table variable can impact performance of your query. The reason is that the statements referencing the table variable are compiled when the table variable has no...
View ArticleVSS backup of AlwaysOn Secondaries
Hi Everyone,Today I’m going to highlight one of the changes brought by SQL Server 2012 SP2, which is the way we handle VSS Backup requests on AlwaysOn Secondary Databases.Until now, any request for a...
View ArticlePower View in Excel won’t render from SharePoint
I originally encountered this issue back in May with a customer. We had another customer this month that had the same issue. When you try to load an Excel Document with a Power View Report in it from...
View ArticleA Partitioned Table May Limit the Runtime MAX DOP of Create/Alter Index
I was working with a 1.3 trillion row table in the Microsoft lab when I learned more about the ins and outs of this behavior. This issue is alluded to in SQL Server Books Online but allow me to expand...
View ArticleSQL CLR assembly fails verification with “Unable to resolve token”
Recently we worked with a customer has an SQL CLR assembly. This customer decided to upgrade from SQL Server 2008 R2 to SQL Server 2012. But this assembly failed to register with SQL Server and he...
View ArticleSQL Server MAX DOP Beyond 64 – Is That Possible?
I recently posted a blog outlining how the partitions of a table can be used in the calculation for the achievable max degree of parallelism (MAX DOP)....
View ArticleA faster CHECKDB – Part III
Bob Ward introduced Part 1 and Part 2 of ‘A faster CHECKDB’ as highlighted in the following links.Part 1:http://blogs.msdn.com/b/psssql/archive/2011/12/20/a-faster-checkdb-part-i.aspx Part 2:...
View ArticleHow come sys.dm_exec_requests.cpu_time never moves?
Today, I want to point out another SQL Server 2012 SP2 fix that may affect your performance troubleshooting. When you are troubleshooting a long running query, chances are you will use...
View ArticleHow It Works: sp_server_diagnostics – spinlock backoffs
There are numerous articles outlining how spinlocks work so I won’t cover the details in this post. Instead, I want to focus on the spinlockbackoffs value recorded in the sp_server_diagnostics...
View ArticleJDBC: This driver is not configured for integrated authentication
I’ve had about 4 cases in the last two months that centered around the following error when trying to use Windows Integrated authentication with JDBC.java.sql.SQLException: This driver is not...
View ArticleA faster CHECKDB – Part IV (SQL CLR UDTs)
I have been working on the various aspects of DBCC performance and SQL CLR based User Defined Data Types. I encountered a few issues that I have outlined below. 1. Memory Grant BugThere is a...
View ArticleDo I really need to use DTC Transactions?
It is sometimes common practice to enable Distributed Transaction (DTC) behavior but it can be unnecessary, and adds unwanted overhead. DTC has the ability to determine single phase vs two phase...
View Article#Error When Rendering Report
Last week a case was brought to me where the customer was getting a #Error for a field within their report. The field value was normally a number, but they wanted to change it to something like...
View ArticleSQL Server and SSDs – RDORR’s Learning Notes - Part 1
I am very hesitant to post anything that I don’t have the full details on. However, with SSD deployments moving so rapidly I thought it might be helpful to share some of my learning's to date.I make...
View ArticleTroubleshooting Memory Issues with Reporting Services
We had a case where Reporting Services was crashing with the following error.Failed allocate pages: FAIL_PAGE_ALLOCATION 2 The number at the end can be different. In the customer’s case it was a 1....
View ArticleFrequently used knobs to tune a busy SQL Server
In calendar year 2014, the SQL Server escalation team had the opportunity to work on several interesting and challenging customers issues. One trend we noticed is that many customers were migrating...
View ArticleRunning SQL Server on Machines with More Than 8 CPUs per NUMA Node May Need...
Applies To: SQL 2008, 2008 R2, 2012 and 2014 releasesNote: The number of CPUs is the logical count, not sockets. If more than 8 logical CPUs are presented this post may apply.The SQL Server...
View ArticleHow It Works: MAX DOP Level and Parallel Index Builds
I have been working on an issue where rebuilding an index leads to additional fragmentation. Using XEvents I debugged the page allocations and writes and was able to narrow in on the behavior.There...
View ArticleDoes rebuild index update statistics?
I recently did a talk to a group of SQL users. Quite a few facts ended up surprising the audience. I thought I’d share a few and wanted to start with index rebuild.If someone asks you the question...
View ArticleMoving Reporting Services off of a Cluster
We had a customer that had deployed Reporting Services to their Cluster. They now wanted to move the RS Instance off of the Cluster and onto its own machine and leave the Catalog Database on the...
View Article