DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 2819446 - Last Review: August 21, 2013 - Revision: 7.0

On This Page

Symptoms

Assume that you run the cursor stored procedure sp_cursoropen together with the scrollopt argument in Microsoft SQL Server 2008 R2 or Microsoft SQL Server 2012. Additionally, assume that the following conditions are true:


  • The scrollopt argument is not set as STATIC or FAST_FORWARD.
  • The argument stmt contains a query that runs against a view.
  • The view retrieves data from a table by using a linked server.
  • The table has a composite index that contains 16 key columns.

In this situation, you receive the following error message:

A severe error occurred on the current command.


Resolution

Cumulative update information

Cumulative update 9 for SQL Server 2012

The fix for this issue was first released in Cumulative Update 9. For more information about how to obtain this cumulative update package for SQL Server 2012, click the following article number to view the article in the Microsoft Knowledge Base:
2867319  (http://support.microsoft.com/kb/2867319/ ) Cumulative update package 9 for SQL Server 2012
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 2012 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:
2692828  (http://support.microsoft.com/kb/2692828/ ) The SQL Server 2012 builds that were released after SQL Server 2012 was released

Cumulative Update 4 for SQL Server 2012 SP1

The fix for this issue was first released in Cumulative Update 4. For more information about how to obtain this cumulative update package for SQL Server 2012 SP1, click the following article number to go to the article in the Microsoft Knowledge Base:
2833645  (http://support.microsoft.com/kb/2833645/ ) Cumulative update 4 for SQL Server 2012 SP1
Note Given that 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 2012 SP1 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 go to the article in the Microsoft Knowledge Base:
2772858  (http://support.microsoft.com/kb/2772858/ ) The SQL Server 2012 builds that were released after SQL Server 2012 Service Pack 1 was released

Cumulative update 6 for SQL Server 2008 R2 Service Pack 2

The fix for this issue was first released in Cumulative Update 6. For more information about how to obtain this cumulative update package for SQL Server 2008 R2 Service Pack 2, click the following article number to view the article in the Microsoft Knowledge Base:
2830140  (http://support.microsoft.com/kb/2830140/ ) Cumulative update package 6 for SQL Server 2008 R2 Service Pack 2
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 Service Pack 2 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:
2730301   (http://support.microsoft.com/kb/2730301 / ) The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 Service Pack 2 was released

Status

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

Workaround

To work around the issue, use fewer than 16 key columns for the composite index.

References

For more information about the cursor stored procedure sp_cursoropen, go to the following MSDN website:

Introduction of cursor stored procedure sp_cursoropen (http://msdn.microsoft.com/en-us/library/ff848737.aspx)


Applies to
  • Microsoft SQL Server 2008 R2 Service Pack 2
  • Microsoft SQL Server 2008 R2 Enterprise
  • Microsoft SQL Server 2008 R2 Developer
  • Microsoft SQL Server 2008 R2 Standard
  • Microsoft SQL Server 2012 Developer
  • Microsoft SQL Server 2012 Enterprise
  • Microsoft SQL Server 2012 Service Pack 1
  • Microsoft SQL Server 2012 Standard
  • Microsoft SQL Server 2012 Web
  • SQL Server 2012 Enterprise Core
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2819446
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support