Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 How to create Login through T-SQL

Author  Topic 

real_pearl
Posting Yak Master

106 Posts

Posted - 2004-10-20 : 02:28:26
I want to know how can we create login and assign priviliges?

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2004-10-20 : 03:54:41
check BOL for sp_addlogin, sp_grantlogin, sp_defaultdb,permissions

--------------------
keeping it simple...
Go to Top of Page

chetancool
Starting Member

34 Posts

Posted - 2004-10-21 : 07:33:28
There are in-built store procdeure for this work :
sp_addlogin - for adding user
sp_revokelogin - for removing user
sp_defaultdb - for giving user a default db when he logs in
sp_grantlogin - Giving rights of login to user
sp_denylogin - revoking login rights from user
sp_droplogin - for dropping login ac
sp_password - to change the password




cjain
Go to Top of Page
   

- Advertisement -