January 23, 2007 at 11:15 pm
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.
Please help me in this situation.
Thanks in advance
January 24, 2007 at 2:28 am
Hi there,
You want somthing like:
CREATE LOGIN James
WITH PASSWORD = 'Kjskd*&sd^^54665&';
USE AdventureWorks;
CREATE USER James FOR LOGIN James;
GO
The sytax is documented here:http://msdn2.microsoft.com/en-us/library/ms173463.aspx
Hope this helps,
- James
--
James Moore
Red Gate Software Ltd
January 24, 2007 at 3:01 am
Actually I want something similar to the following thing which is acually used in ORACLE for user creation.
created user <user_name> identified by <password>
Same stuff I want for MS SQL also
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply