all groups > sql server programming > november 2005 >
You're in the

sql server programming

group:

howto sp_adduser


RE: howto sp_adduser ML
11/25/2005 2:58:02 PM
sql server programming: What you need is sp_addsrvrolemember. Look up the details in Books Online.
You are trying to add the login to the sysadmin server role, aren't you?

Although I would urge you to consider possible consequences.

What exactly are you trying to do? Why would this new user need all the
privileges of a system administrator?


howto sp_adduser Abraham Andres Luna
11/25/2005 5:40:08 PM
hey everyone,

i managed to sp_addlogin:

sp_addlogin 'ID', 'PWD', 'ad_2000'


then i tried to sp_adduser:

sp_adduser 'ID', 'ID', 'sysadmin'

and it threw an error: sysadmin does not belong to database
i assume that i should have set the database to master
but would that affect any access permissions to ad_2000

Re: howto sp_adduser ML
11/28/2005 7:09:04 AM
This is the place to get help. :)


Re: howto sp_adduser Abraham Andres Luna
11/28/2005 10:01:17 AM
thank you for your response
well, i added triggers to some tables right
that will log any INSERT, UPDATES, DELETES to the table,
so one of the things i log, is the user logged in to the database
sa is the default, so i decided to add users for everyone, that way the log
will work for whoever is logged in (making my life alot easier)
they need the same privileges as sa so they can use the application

thank you for your help


[quoted text, click to view]

Re: howto sp_adduser Abraham Andres Luna
11/28/2005 1:43:58 PM
ty

[quoted text, click to view]

AddThis Social Bookmark Button