Re: User rights problem
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 07/22/05
- Previous message: Mike Epprecht (SQL MVP): "RE: Alternative to Account Delegation?"
- In reply to: Gopinath M: "User rights problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 23 Jul 2005 02:00:49 +0530
Hi Gopinath,
You cant give permission to developer to create a stored procedure under the
ownership of DBO. The only option is let your developer create the
stored procedures under his name. Later you can login as SA or user with
db_owner rights and execute the below command to change the owner to dbo.
sp_changeobjectowner 'existingowner.procedurename','dbo'
This will make the object owner to dbo. If needed you can even write a
script and schedule a job to change the owner daily once or twice.
Thanks
Hari
SQL Server MVP
"Gopinath M" <GopinathM@discussions.microsoft.com> wrote in message
news:BD37896B-98E4-469C-A9F7-71C84F13F8A6@microsoft.com...
> Hi,
> I'm have a user called "developer" with rights create procedure,
> db_datareader and db_datawrite. When i try to create an sp with owner as
> dbo
> i'm getting the following error
>
> "Specified owner name 'dbo' either does not exist or you do not have
> permission to use it."
>
> here is the sample script which i'm using to create the procedure
>
> CREATE PROCEDURE dbo.pGetPatientList
> AS
> BEGIN
> SELECT Name, Age FROM Patient
> END.
>
>
> I would like to create an sp with owner dbo. Can you please tell me
> the
> rights which i should give to the "developer" login for donig so. I cant
> grant db_owner rights to the "developer" login(this is to restrict the
> user
> from modifying schema of user tables and contraints).
>
>
> Regards,
> Gopinath
>
>
>
>
- Previous message: Mike Epprecht (SQL MVP): "RE: Alternative to Account Delegation?"
- In reply to: Gopinath M: "User rights problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|