PRB: DAO Run-Time Error 3146 When Modifying SQLServer Data (195225)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q195225 SYMPTOMS When attempting to delete or update a record in a SQL
Server cursor, the delete or update operation succeeds, but the following error
returns: Run-time error 3146 "ODBC call
failed". CAUSE This behavior occurs when SQL Server does not return a
message indicating the number of rows returned by a statement. SQL Server does
not return a message indicating the number of rows affected by a statement
after the following commands have been executed on SQL Server:
sp_configure "user options", 512
SET NOCOUNT ON
REFERENCES Transact - SQL Reference Help; search on: "sp_configure";
"SET".
(c) Microsoft Corporation 1999, All Rights Reserved.
Contributions by John R. Desch, Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 3/2/2005 |
---|
Keywords: | kbprb KB195225 |
---|
|