FIX: Dump DB/Trans Permission Denied When User Not in DB |
Q118385
In some situations a database administrator may create a user ID whose
specific purpose is to perform database and transaction log dumps.
SQL Server prevents a user ID that has been granted permission to dump
databases transaction logs from doing so if the user's current database
context is not the database to be dumped. If this is attempted, message
number 262 is returned:
DUMP DATABASE permission denied, database <database_name>, owner dbo.
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 4.2 and 4.21a. This problem was corrected in Microsoft SQL Server version 6.0.
use master
go
exec sp_addlogin dumptest, NULL, master
exec sp_adduser dumptest
go
use test
go
sp_adduser dumptest
go
grant dump database to dumptest
grant dump transaction to dumptest
go
dump database test to diskdump
go DUMP DATABASE permission denied, database test, owner dbo.
use test
go
dump database test to diskdump
go Additional query words: Windows NT
Keywords : kbusage kbSQLServ600fix
Issue type : kbbug
Technology : kbSQLServSearch kbAudDeveloper kbSQLServ420OS2
|
Last Reviewed: February 10, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |