Quantcast
Channel: CSS SQL Server Engineers
Browsing all 339 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

AlwaysOn ERROR: Log backup for database "MyDB" on secondary replica created...

This error surprised me when it showed up in the error log so I decided to dig into it a bit more.“Log backup for database "MyDB" on secondary replica created backup files successfully but could not...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 2012 Setup just got smarter…

For many years, I’ve been pushing for a way for our SQL Server setup to “fix itself” or “get smarter”. What I mean is that I’ve always wanted a way for setup to detect if any fixes are available online...

View Article


Image may be NSFW.
Clik here to view.

How It Works: SQL Server 32 bit PAE/AWE on (SQL 2005, 2008, and 2008 R2) –...

This issue was puzzling until we stepped through the code and studied it in some detail.   The report was “SQL Server won’t use the physical memory I expect it to use.”Scenario:  SQL Server 2008 R2,...

View Article

Image may be NSFW.
Clik here to view.

How It Works: SQL Server (NUMA Local, Foreign and Away Memory Blocks)

The NODE an operating system page, physically belongs to can be acquired using the QueryVirtualMemoryEx Windows API.  SQL Server uses this API to track locality of memory allocations.This blog is a...

View Article

Image may be NSFW.
Clik here to view.

Azure SQL Database Import/Export Service - Change always brings both...

We recently upgraded the Import/Export Service to v3 of the DAC Framework (http://technet.microsoft.com/en-us/library/ee210546.aspx). This aligns the Import/Export service with what shipped with SQL...

View Article


Image may be NSFW.
Clik here to view.

SQLCLR and sp_OA* procedures are not compatible

We ran into an issue today that is a bug you may need to be aware of because of its behavior.   When a SQLCLR procedure calls back into the SQL Server (in proc provider) and executes sp_OA*, during the...

View Article

Image may be NSFW.
Clik here to view.

How It Works: CMemThread and Debugging Them

The wait type of CMemThread shows up in outputs such as sys.dm_exec_requests.  This post is intended to explain what a CMemThread is and what you might be able to do to avoid the waits.  The easiest...

View Article

Image may be NSFW.
Clik here to view.

Uneven query executions with parallelism

We had a customer who was doing stress testing on a machine with 40 cores.   They designed a program that would launch multiple connections to execute the same query repeatedly based on their...

View Article


Image may be NSFW.
Clik here to view.

Getting a Power View report within Excel 2013 to work with SharePoint

I was setting up my SharePoint 2013 server to be able to use an Excel 2013 workbook that had a Power View Report in it.  However, when I tried opening the workbook, I got the following error:In the ULS...

View Article


Image may be NSFW.
Clik here to view.

How can I get that user out of my table quickly

Recently, I worked on an customer issue to help tune their slow query.   The query was fairly complex involving multiple table joins.  The key issue is the inability to do seeks on a particular...

View Article

Image may be NSFW.
Clik here to view.

AppDomain unloading messages flooding the SQL Server error log

This blog is built directly from a customer reported issue.  As I helped investigate the source of the issue I thought it would be of interest to a broader audience – hopefully you find this...

View Article

Image may be NSFW.
Clik here to view.

Don’t change value of that parameter

Parameter sniffing is a well known among SQL User community.   But I have seen variations of this frequently that need a bit creative handling and solution may not that straight forward.One of the...

View Article

Image may be NSFW.
Clik here to view.

Query hint QUERYTRACEON is now documented publically

I just wanted to put a quick note that QUERYTRACEON is now publically documented in http://support.microsoft.com/kb/2801413/en-us.  If you have situations where you don’t want to enable an optimizer...

View Article


Image may be NSFW.
Clik here to view.

Under rare conditions, using IN clause can cause unexpected SQL behavior

I want to make you aware of a latest SQL Server 2008 hotfix documented in http://support.microsoft.com/kb/2791745.   Using large number of constants in IN clause can result in SQL Server termination...

View Article

Image may be NSFW.
Clik here to view.

Breaking Down 18065

We have had two blog posts on this blog regarding the 18056 error.  Two from Bob Dorr (and part 2) and another from Tejas Shah.  However, we still see a lot of questions about this error message. This...

View Article


Image may be NSFW.
Clik here to view.

RS: Database Engine does not meet edition requirements

I've ran across the following error a few times and thought I would post this out there for people to understand what is happening.ERROR: Throwing...

View Article

Image may be NSFW.
Clik here to view.

Unable to register .NET framework assembly not in the supported list

SQL Server has supported CLR usage since version 2005.  But support of .NET framework assemblies within SQL Server is limited per our support policy in KB http://support.microsoft.com/kb/922672. Some...

View Article


Image may be NSFW.
Clik here to view.

Temp table caching improvement for table valued parameters in SQL Server 2012

I wanted to point out a nice performance improvement related to table valued parameters (TVP) in SQL Server 2012.   It’s not currently documented in our online documentation.   But we have had...

View Article

Image may be NSFW.
Clik here to view.

switchoffset built-in function can cause incorrect cardinality estimate

Recently, we received a call from a customer reported that a query was slow.  Upon further investigation, his query has a predicate that look like this:select * from t o where c1 >switchoffset...

View Article

Image may be NSFW.
Clik here to view.

SQL Server 2012 partitioned table statistics update behavior change when...

In this blog, I will talk about a couple of things related to statistics update when rebuilding index on a partitioned table. In past versions, when you rebuild an index, you will get statistics update...

View Article
Browsing all 339 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>