all groups > sql server programming > june 2006 >
You're in the

sql server programming

group:

Server login using code


Server login using code Sandy
6/11/2006 6:37:01 PM
sql server programming:
Hello -

If I were to use code to create a server login, do I have to "use a
database'; that is, something like this:
Use Master
Go
Create Login [OrganizationName\WindowsUserGroupName]

If so, would I in fact use the Master?

Also, on the create login, is the above a correct pattern for the way it
would be created?

Any help will be greatly appreciated!
--
Re: Server login using code oj
6/11/2006 10:23:51 PM
all logins are stored in master database. so, it doesn't really matter under
which db context, the 'create login' will insert a row in master.

--
-oj



[quoted text, click to view]

AddThis Social Bookmark Button