You do not receive any error messages or warning messages when you remove a SQL Server login account that owns one or more jobs in SQL Server 2000 (885713)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
Bug #: 303829 (SQL BU Defect Tracking)
Bug #: 472552 (SQL Server 8.0)
SYMPTOMSWhen you remove a Microsoft SQL Server login account that owns one or more SQL Server Agent jobs, you may notice that the SQL Server login account is removed successfully and you do not receive any error messages or warning messages. Additionally, you may notice that all the jobs that were owned by the removed SQL Server login account are now owned by a user account that is a member of the sysadmin fixed server role. This problem occurs if you remove the SQL Server login account after you connect to an instance of Microsoft SQL Server 2000 as a user who is a member of the securityadmin fixed server role and is not a member of the sysadmin fixed server role. Note If you try to remove a SQL Server login account that owns one or more jobs when you are connected to the instance of SQL Server 2000 as a member of the sysadmin fixed server role, you will receive the following error message: Server: Msg 14248, Level 16, State 1, Procedure sp_droplogin, Line 112
This login is the owner of NumberOfJobsThatAreOwnedByTheUser job(s). You must delete or reassign these jobs before the login can be dropped. CAUSEThe members of the securityadmin fixed server role do not have permissions to access the data in the tables and views that are related to jobs in the msdb system database. Therefore, while checking for the dependencies on the SQL Server login account that is being removed, the information thatis related to the jobs that are owned by the SQL Server login account is not available. Therefore, SQL Server assumes that the SQL Server login account does not own any jobs, and then SQL Server drops the SQL Server login account. WORKAROUNDIf you must use a member of the securityadmin fixed server role to manage the SQL Server login accounts, a member of the sysadmin fixed server role must check job ownership and reassign the job appropriately in SQL Server 2000 before it removes the SQL Server login accounts.REFERENCESFor more information, visit the following Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 9/20/2004 |
---|
Keywords: | kbView kbStoredProc kbSysAdmin kblogin kberrmsg kbtshoot kbprb KB885713 kbAudDeveloper |
---|
|