BUG: Application Error When Expanding a Stored ProcedureID: Q179151
|
BUG #: 17701 (6.5)
15729 (6.0)
If there is a stored procedure in sysobjects belonging to an invalid database user, you will receive a Dr. Watson application error with Sqlew.exe if you attempt to use SQL Enterprise Manager to expand the Stored Procedure folder under the database.
To work around this problem, remove, rename or re-create the stored procedure under a valid user who has CREATE PROCEDURE privileges.
Microsoft 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.
Use the following SQL query to find stored procedures that belong to an
invalid database user:
select name,uid from sysobjects
where uid NOT IN (select uid from sysusers)
and type = 'P'
use USER_DB -- user_db is the database with the orphaned object
go
sp_configure allow,1 -- allows update to system tables
reconfigure with override
go
update sysobjects set uid=1
where name = 'name of stored procedure returned in Step 2'
go
drop procedure <name of stored procedure returned in Step 2>
go
sp_configure allow,0 -- disallows update to system tables
reconfigure with override
go
Additional query words:
permission unhandled exception GPF AV access violation proc st
stproc
Keywords : SSrvEntMan SSrvGPF kbbug6.50 kbbug6.00
Version : WINNT: 6.0 6.5
Platform : winnt
Issue type : kbbug
Last Reviewed: April 20, 1999