FIX: Error 21770 When Trying to Manage Permissions For User-Owned Stored Procedures in SEM

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

On This Page

Symptoms

You receive the following error message if you attempt to manage permissions for user-owned stored procedures in the SQL Enterprise Manager (SEM), when the server is registered using a login that is not the owner of that stored procedure.
Error 21770:[SQL-DMO]The name <stored_proc_name> was not found in the specified collection.
This problem does not occur while managing permissions for user-owned tables or views.

Workaround

Here are two workarounds:
  • Register the server in SEM using the login that is the owner of the stored procedure.

    -or-
  • Manage permissions using the T-SQL GRANT and REVOKE commands from the Query Analyzer.

Status

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
232570INF: How to Obtain Service Pack 1 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

More information

Steps to Reproduce the Problem

  1. Register the server in SEM using the system administrator (SA) login.
  2. Create a login "TestUser" and permit access to the Northwind database for this user in the role of db_owner or db_ddladmin.
  3. Edit the registration properties of the server and register the server in SEM using the login of "TestUser".
  4. Create a stored procedure named TestProc in the Northwind database from the SEM.
  5. Edit the registration properties of the server and register the server using a login that is not the owner of the stored procedure "TestProc", but is a database owner (DBO) of that database.
  6. In the SEM, expand the databases folder by clicking the PLUS SIGN (+).
  7. Next, expand the Northwind database by clicking the PLUS SIGN (+).
  8. Select Stored Procedures so that the names of all the stored procedures in the Northwind database display on the right-side of the SEM.
  9. Right-click the stored procedure "TestProc" and select Properties.
  10. Click the Permissions button in the Properties window.
The following error message is returned:
Error 21770:[SQL-DMO]The name 'TestProc' was not found in the specified collection.

Properties

Article ID: 229003 - Last Review: November 2, 2013 - Revision: 3.0
Applies to
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix kbsqlserv700sp1fix KB229003

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