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 2005 Forums
 Transact-SQL (2005)
 Query to create a db user in MS SQL

Author  Topic 

Dance123
Starting Member

3 Posts

Posted - 2007-01-24 : 05:53:40
HI everybody...

Can anyone help me to know the

Query to Create SQL database Users in MS SQL

through the query engine of MS SQL Server Management Studio..

I am struggling with the same and I tried the one

create user <user_name> for login <login_name>.

But it seems that it will create the windows user itself and not the sql user.

I want a query similar to create user <user_name> identified by <password> in ORACLE, which will create users in MS SQL

Please help me in this situation.

Thanks in advance


dance

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-01-24 : 06:10:39
Check BOL for CREATE USER. I believe they have plenty of information as well as good examples there to clear your doubt.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -