Article ID: 264687 - View products that this article applies to.
This article was previously published under Q264687
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57978(SQLBUG_70)
After you apply Microsoft SQL Server Service Pack 2, Microsoft ActiveX Data Objects (ADO) applications that attempt to update a row in a rowset fail if you are using a server-side cursor and the column name contains spaces. The error message that occurs is:
When you use ODBCDirect the following SQL Server error messages occur:
0x80004005 (-2147467259) "Incorrect syntax near ..."
Msg 170 37000: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'nvarchar'.
Msg 137 37000: [Microsoft][ODBC SQL Server Driver][SQL Server]Must declare the variable '@Session'.
3146 ODBC--call failed.
This problem is due to a change in processing updates with sp_cursor calls in SQL Server 7.0 Service Pack 2.
You can use either of the following workarounds:
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799For more information, contact your primary support provider.
(http://support.microsoft.com/kb/274799/ )INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
Contact us for more help
Connect with Answer Desk for expert help.