FIX: Errors Running Wizards Against Objects not Owned by DBO

Article translations Article translations
Article ID: 239133 - View products that this article applies to.
This article was previously published under Q239133
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 56147 (SQLBUG_70)
BUG #: 55515 (SQLBUG_70)
Expand all | Collapse all

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 this:
<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 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

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.

Properties

Article ID: 239133 - Last Review: October 26, 2013 - Revision: 3.0
Applies to
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB239133

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com