dbTalk Databases Forums  

? about users

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss ? about users in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian
 
Posts: n/a

Default ? about users - 01-07-2008 , 07:30 AM






How do I setup a user to access the my sql server database. I do not want
to give him the admin account login.



Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: ? about users - 01-07-2008 , 04:19 PM






Brian (brian@work) writes:
Quote:
How do I setup a user to access the my sql server database. I do not want
to give him the admin account login.
It would certainly help to know more about your database and your server
and the context it exists in. And what you want the user to do in the
database.

But assuming that your user has a Windows login to connect with you would
do:

CREATE LOGIN [Domain\Name] FROM WINDOWS;
go
USE db;
go
CREATE USER [Domain\Name]

Then you would assign the user the permissions he need. (Which I can't
detail, because I don't know what he needs.)

If you are in a workgroup, it's probably better to use an SQL login.

And, oh, the above syntax is for SQL 2005; another thing you did not detail
was the SQL Server version.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.