删除用户出现的错误

drop user u1

出现如下错误:

Msg 15136, Level 16, State 1, Line 1

The database principal is set as the execution context of one or more procedures, functions, or event notifications and cannot be dropped.

 

 

执行如下语句

select *from sys.sql_modules where execute_as_principal_id=database_principal_id('u1')

 

删除/修改 结果集中的存储过程

posted on 2008-08-28 15:21  stswordman  阅读(588)  评论(2编辑  收藏  举报