BUG: Errors Running Wizards Against Objects not Owned by DBO

ID: Q239133


The information in this article applies to:
  • Microsoft SQL Server version 7.0

BUG #: 56147 (SQLBUG_70)
BUG #: 55515 (SQLBUG_70)

SYMPTOMS

When you run SQL Server Enterprise Manager wizards against objects owned by anyone other than yourself or the database owner (DBO), you may receive errors and the wizard may not complete successfully.


CAUSE

When you do not use the fully qualified object name, SQL Server looks for the following:


<current server>.<db specified>.<user logged on>.<object specified> 
If it does not find this, it then looks for:

<current server>.<db specified>.dbo.<object specified> 
The wizards do not allow you to specify an owner. So, if you are not logged on as the object owner and the object is not owned by the DBO, the wizards will not find the object.


WORKAROUND

Use sp_changeobjectowner to change the owner of the table to the DBO, and then run the wizard again.


STATUS

Microsoft has confirmed this to be a problem in SQL Server version 7.0.


MORE INFORMATION

One example of this problem is that when you run the Index Tuning Wizard on tables that neither you nor the DBO own, you will receive the following error:

The server returned an error attempting to either create a temporary table or index statistics.
Another example of this is that when you run the Create View Wizard and use tables that neither you nor the DBO own, you will receive the following error:
Error 21776: [SQL-DMO]The name '<object name>' was not found in the Tables collection. If the name is a qualified name, use [] to separate various parts of the name, and try again.

Additional query words:

Keywords : kbSQLServ700bug
Version : winnt:7.0
Platform : winnt
Issue type : kbbug


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.