Select the product you need help with
FIX: "FOR UPDATE clause allowed only for DECLARE CURSOR" error when you execute stored procedures together with cursor-specific syntax in SQL Server 2012Article ID: 2740957 - View products that this article applies to. Microsoft distributes Microsoft SQL Server 2012 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 2012 fix release. On This PageSymptomsConsider the following scenario:
FOR UPDATE clause allowed only for DECLARE CURSOR. Notes
CauseThis issue occurs because the sp_cursorprepare stored procedure cannot return metadata for a result set in SQL Server 2012. ResolutionAfter you apply the fix, the sp_cursorprepare stored procedure can return metadata for a result set just as it functions in Microsoft SQL Server 2008 R2. Additionally, the fix adds retry logic so that SQL Server retries by using cursor-specific syntax when a stored procedure that has common syntax fails. Cumulative update informationCumulative update package 3 for SQL Server 2012The fix for this issue was first released in Cumulative Update 3. 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:2723749 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:
(http://support.microsoft.com/kb/2723749/
)
Cumulative Update 3 for SQL Server 20122692828
(http://support.microsoft.com/kb/2692828/
)
The SQL Server 2012 builds that were released after SQL Server 2012 was releasedStatusMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. ReferencesFor more information the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base: 935897 For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/935897/
)
An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems 822499 For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/822499/
)
Naming schema for Microsoft SQL Server software update packages 824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates PropertiesArticle ID: 2740957 - Last Review: August 29, 2012 - Revision: 1.0 Applies to
|


Back to the top








