June 24, 2006 at 10:53 pm
I want write a script that:
1° create a database (create database xxxx ..)
2° '??? add user ???' and grant him all privileges
How can i do for 2°?
something as 'create user uid password', 'add user ...' ?
thanks to all
Castore
June 26, 2006 at 8:35 pm
Lookup the following in Books Online (Transact-SQL Help from Query Analyzer)...
sp_addlogin
sp_grantdbaccess
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2006 at 9:33 pm
Thanks Jeff. This is what i was looking for.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply