Re: SQL Server Login
- From: Ekrem Önsoy <ekrem@xxxxxxxxxxxx>
- Date: Thu, 25 Oct 2007 12:04:41 +0300
Create a LOGIN and map it to the database you want it to use.
Create a USER in that database for that login and grant it the necessary rights on that database such as following.
GRANT CREATE PROCEDURE TO [test_user]
GRANT SELECT TO [test_user]
You can learn more about these commands from the following links:
CREATE LOGIN (Transact-SQL)
http://msdn2.microsoft.com/en-us/library/ms189751.aspx
GRANT (Transact-SQL)
http://msdn2.microsoft.com/en-us/library/ms187965.aspx
--
Ekrem Önsoy
"Phil" <Phil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FB92BAC6-F8B7-4BEF-A98E-388F39FC306E@xxxxxxxxxxxxxxxx
Hi,
I am after some advice for setting up a new Login on to my SQL Server, I
will be using a copy of SQL Server Express to connect to a SQL Server 2005
server running on a Windows Server 2003 machine.
I want to create a login which will be using Windows Authenticate to access
the server, once logged in, I only want the person to be able to see one
database and not all on the server and for them to only run SELECT
statements, if possible could they Create a Stored Procedure but only allow
that stored procedure to have SELECT statements in it, although not sure if
this bit is possible..
Thanks PD
P.S. If someone could point me in the right direction for some informative
web sites on how to create sql server logins it would be much appreciated.
.
- Prev by Date: Re: End SQL Session (SQL Server)
- Next by Date: linking server
- Previous by thread: Password MDF
- Next by thread: linking server
- Index(es):
Relevant Pages
|
|