Re: Want to run sp_addlogin
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 07/08/04
- Next message: Dan Guzman: "Re: Want to run sp_addlogin"
- Previous message: Dan Guzman: "Re: Want to run sp_addlogin"
- In reply to: Dan Guzman: "Re: Want to run sp_addlogin"
- Next in thread: Dan Guzman: "Re: Want to run sp_addlogin"
- Reply: Dan Guzman: "Re: Want to run sp_addlogin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 8 Jul 2004 18:01:56 +0530
Hi
Logins with securityadmin fixed server role can also execute sp_addlogin.
sp_addsrvrolemember 'login_name','securityadmin'
-- Thanks Hari MCDBA "Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message news:eWFhGSOZEHA.3304@TK2MSFTNGP09.phx.gbl... > Sysadmin role membership is required to execute sp_addlogin. If you need to > execute this from application code, you can connect using a sysadmin role > member login before executing the proc. > > -- > Hope this helps. > > Dan Guzman > SQL Server MVP > > "sqldummy" <sqldummy@discussions.microsoft.com> wrote in message > news:6D87C2B5-091D-42B2-ACC6-12946DD9FFE4@microsoft.com... > > Hi there > > Is there a way, with which a user can run the sp_addlogin stored proc, if > they are not a member of db_owner. We need some of them to add users from > the applications, via a stored proce which calls sp_addlogin. But they do > not have the correct permissions to run the stored proc. Any help? > > > >
- Next message: Dan Guzman: "Re: Want to run sp_addlogin"
- Previous message: Dan Guzman: "Re: Want to run sp_addlogin"
- In reply to: Dan Guzman: "Re: Want to run sp_addlogin"
- Next in thread: Dan Guzman: "Re: Want to run sp_addlogin"
- Reply: Dan Guzman: "Re: Want to run sp_addlogin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|