The information in this article applies to:
BUG#: 16646 (6.5) SYMPTOMS
If you fetch from a cursor defined on a view owned by a user other than
the owner of the underlying base table, and there are identical object
names for the view and the table, you will receive the following error
message, and the client connection will be terminated:
For example, a view called "authors" created by user "Bill" in the pubs database defined on the underlying "dbo" owned "authors" table will give error 602 when Bill attempts to fetch from a cursor on this view. CAUSEThe object ID in the error 602 message corresponds to the view object. SQL Server looks for the table object owned by its owner, when it should in fact be looking for the view. WORKAROUND
Use qualifiers to reference the View name when declaring the cursor, as
in the following example:
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Keywords : kbprg SSrvTran_SQL |
Last Reviewed: April 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |