Re: Want to run sp_addlogin
From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 07/08/04
- Previous message: Hari Prasad: "Re: Want to run sp_addlogin"
- In reply to: Hari Prasad: "Re: Want to run sp_addlogin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 8 Jul 2004 07:47:12 -0500
You are right, Hari. I should have mentioned this role too.
-- Hope this helps. Dan Guzman SQL Server MVP "Hari Prasad" <hari_prasad_k@hotmail.com> wrote in message news:usohsjOZEHA.2432@tk2msftngp13.phx.gbl... > 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? > > > > > > > > >
- Previous message: Hari Prasad: "Re: Want to run sp_addlogin"
- In reply to: Hari Prasad: "Re: Want to run sp_addlogin"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|