PRB: Error 40069 Update Resultset Returned from Stored ProcedureLast reviewed: November 24, 1997Article ID: Q177186 |
The information in this article applies to:
SYMPTOMSWhen you are updating a recordset returned from a stored procedure using ClientBatch cursor driver, and you do not specify the source table and the key column, the following errors occur:
Run-time error '40069': Client Cursor: 39 - One of the modified columns has no source table defined CAUSEWhen you perform a SELECT query or a join to build the resultset using a stored procedure, the source table and key column information is not filled in. This occurs because the ODBC layers cannot parse the SQL query to point back to the table and key column from where the chosen column draws its data.
RESOLUTIONYou have to provide SourceTable and KeyColumn properties in code in order to update resultsets returned from the stored procedure using ClientBatch cursor driver.
STATUSThis behavior is by design.
MORE INFORMATIONIn addition to steps to reproduce the errors, the following sample code demonstrates how to update resultsets returned from a stored procedure successfully using Client Batch cursor driver. The stored procedure, GetInfo, is created in SQL Server Pubs database, which retrieves information from the Authors table. Command1 updates the resultset returned from the stored procedure without the SourceTable and KeyColumn information; therefore, errors occur. Command2 demonstrates how a successful update is done by providing the source table and key column information.
Step 1: Create the Stored Procedure
Step 2: Create the Visual Basic Code
REFERENCES"Hitchhiker's Guide to Visual Basic and SQL Server," Microsoft Press. ISBN: 1-57231-567-9 Keywords : vb5all kberrmsg Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |