Re: DELETE permission denied problem when using a stored proc to d
From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 10/13/05
- Next message: Ken Schaefer: "Re: Is there any way to prevent hacker trying to guess sa password?"
- Previous message: Rob R. Ainscough: "Re: Is there any way to prevent hacker trying to guess sa password?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 12 Oct 2005 18:56:00 -0500
Did you peruse the article in the link Jens posted? In addition to enabling
the 'db chaining' database option (or cross-database chaining server option)
the databases need to have the same owner so that the dbo-owned object
ownership chain is unbroken. You can use sp_changedbowner to make the
database owners the same. For example:
USE MyDB1
EXEC sp_changedbowner 'SomeLogin'
USE MyDB2
EXEC sp_changedbowner 'SomeLogin'
GO
-- Hope this helps. Dan Guzman SQL Server MVP "Chris Bucknell" <Buckers@newsgroups.nospam> wrote in message news:712793A4-B649-4FA9-B309-BA5DB1EC4EB4@microsoft.com... > Thanks for the points, I didn't have chaining enabled. I have enabled > chaining but I'm still getting the same error of DELETE permission denied > when I try and delete the data from the second database. > > "Jens" wrote: > >> As long as you dont activate ownership chain (as I assume that you are >> deleting data in a different database) this won´t work. Ownerchip >> chains is disabled by default since SP3. >> >> Look for cross database ownership chain in BOL or for the thread: >> >> http://groups.google.de/group/microsoft.public.sqlserver.programming/browse_frm/thread/4b86a2ccefd974af >> >> HTH, JEns Suessmeyer. >> >>
- Next message: Ken Schaefer: "Re: Is there any way to prevent hacker trying to guess sa password?"
- Previous message: Rob R. Ainscough: "Re: Is there any way to prevent hacker trying to guess sa password?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading