FIX: Non-yielding scheduler error when you run a query that uses a TVP in SQL Server 2008 or in SQL Server 2008 R2 if SQL Profiler or SQL Server Extended Events is used

Article translations Article translations
Article ID: 2520808 - View products that this article applies to.
Expand all | Collapse all

On This Page

Microsoft distributes Microsoft SQL Server 2008 R2 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release.

SYMPTOMS

Consider the following scenario:
  • You use a table-valued parameter (TVP) that contains many rows on a computer that is running Microsoft SQL Server 2008 or Microsoft SQL Server 2008 R2.
  • You use SQL Profiler or SQL Server Extended Events on the server.
  • You run a query together that uses the TVP.
In this scenario, a non-yielding scheduler error occurs, and queries that are already running on the same scheduler run slowly. Additionally, a mini-dump file is generated in the SQL Server log folder.

CAUSE

This issue occurs because of an error in the SQL Server database engine. The text columns in the TVP are implemented as insert strings or buffers, and an increase in the number of rows increases the number of buffers. However, the process that releases buffers is time-consuming. Therefore, a non-yielding scheduler error is generated when release and shrink operations occur.   

RESOLUTION

To resolve this issue in SQL Server 2008 R2, use one of the following methods:
  • Install Cumulative Update package 7 for SQL Server 2008 R2.
  • Install the following hotfix package.

To work around this issue in SQL Server 2008 R2 or in SQL Server 2008, see to the "Workaround" section.

Cumulative update information


SQL Server 2008 R2

The fix for this issue was first released in Cumulative Update 7. For more information about how to obtain this cumulative update package for SQL Server 2008 R2, click the following article number to view the article in the Microsoft Knowledge Base:
2507770 Cumulative Update package 7 for SQL Server 2008 R2
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981356 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 was released

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must have Microsoft SQL Server 2008 R2 installed.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The version of this has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-versions of SQL Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Sqlservr.exe2009.100.1769.042,919,77622-Mar-201119:37x86
For all supported x64-versions of SQL Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Sqlservr.exe2009.100.1769.061,974,88022-Mar-201118:46x64
For all supported IA-64-versions of SQL Server 2008 R2 
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Sqlservr.exe2009.100.1769.0121,813,85622-Mar-201118:14IA-64


WORKAROUND

To work around this issue, use one of the following methods:
  • Do not use SQL Profiler or SQL Server Extended Events.
  • Click to clear the RPC:Starting and RPC:Completed check boxes in the trace definition.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about TVP, visit the following MSDN website: 
General information about TVP
For more information about SQL Profiler, visit the following MSDN website:
General information about SQL Profiler

Properties

Article ID: 2520808 - Last Review: April 18, 2011 - Revision: 1.0
APPLIES TO
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 Enterprise Evaluation
  • Microsoft SQL Server 2008 Express
  • Microsoft SQL Server 2008 Express with Advanced Services
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2008 R2 Express
  • Microsoft SQL Server 2008 R2 Express with Advanced Services
  • Microsoft SQL Server 2008 R2 Standard
Keywords: 
kbautohotfix kbqfe kbhotfixserver kbfix kbexpertiseadvanced kbsurveynew KB2520808

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com