setup rights on the database from client side

G

Grant

I have a form that allows me to create a new database on the server from
client side. I get everything to work except for adding users and assigning
rights to the tables. How do I do that?



Thanks
 
D

Dale

Funny you should ask that, Grant...

Just GRANT them permission. Look it up in BOL.

Of course, you have to create the logins and database users first. This
list is straight out of SQL Server Books Online. A review of these stored
procedures should give you all you need to know.

sp_addrole
sp_addrolemember
sp_adduser
sp_defaultdb
sp_defaultlanguage
sp_droplogin
sp_grantlogin
sp_helpuser
sp_password
sp_revokelogin
xp_logininfo
GRANT

Dale Preston
MCAD, MCSE, MCDBA
 
G

Grant

duh, the answer was right in front of me....




Dale said:
Funny you should ask that, Grant...

Just GRANT them permission. Look it up in BOL.

Of course, you have to create the logins and database users first. This
list is straight out of SQL Server Books Online. A review of these stored
procedures should give you all you need to know.

sp_addrole
sp_addrolemember
sp_adduser
sp_defaultdb
sp_defaultlanguage
sp_droplogin
sp_grantlogin
sp_helpuser
sp_password
sp_revokelogin
xp_logininfo
GRANT

Dale Preston
MCAD, MCSE, MCDBA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top