dbTalk Databases Forums  

Accessing Sql server 2005 as simple user

microsoft.public.sqlserver.setup microsoft.public.sqlserver.setup


Discuss Accessing Sql server 2005 as simple user in the microsoft.public.sqlserver.setup forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: Accessing Sql server 2005 as simple user - 07-10-2009 , 10:41 AM






Did you map the Login to your database?

--
Ekrem Önsoy - SQL Server MVP



"Pravin" <pravin (AT) nospam (DOT) com>, iletisinde sunu yazdi,
news:BADA3A7C-955E-4F15-88A3-E0D55ABAD62D (AT) microsoft (DOT) com...
Quote:
Hi,

I have installed Sql Server 2005 express edition as administrator of the
machine. I need to give access to end user who will be accessing it using
another account that is not given administrative priviledges. When I login
as end user then I cannot access the new DB created, though Sql Server
2005 management studio express is accessible but not the database created
as admin. I tried giving "grant all to public" as administrator but that
didnt help. Any suggestions?

Regards,
Pravin

Reply With Quote
  #2  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: Accessing Sql server 2005 as simple user - 07-10-2009 , 04:53 PM






I'm not sure how novice you are about SQL Server, however did you create the
mentioned Login using a GUI like SSMSE?

I assume you are not familiar with T-SQL so I'll try to show the way of
SSMSE to map your Login to your database...

Open up SSMSE and connect to your SQL Server instance, then in the Object
Explorer pane go to Security->Logins and then find the Login you created. Go
to its properties and you'll see User Mapping page in the left side list,
click it and you'll see the available databases. To map your Login to your
database, simply select the checkbox in the "Map" column which is in the row
of the database. You can add the user to some appropriate roles in the
following box in the same window. After completing your actions, close it by
clicking OK and now your Login is mapped to your database.

--
Ekrem Önsoy - SQL Server MVP



"Pravin" <pravin (AT) nospam (DOT) com>, iletisinde sunu yazdi,
news:uBECkNkAKHA.1488 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Quote:
Did you map the Login to your database?


No, I am not sure how to do the mapping mentioned here. Bit new to this
area, would be useful if you can shed some more details. Thanks for your
assistance.

Regards,
Pravin

Reply With Quote
  #3  
Old   
Pravin
 
Posts: n/a

Default Accessing Sql server 2005 as simple user - 07-11-2009 , 09:52 AM



Hi,

I have installed Sql Server 2005 express edition as administrator of the
machine. I need to give access to end user who will be accessing it using
another account that is not given administrative priviledges. When I login
as end user then I cannot access the new DB created, though Sql Server 2005
management studio express is accessible but not the database created as
admin. I tried giving "grant all to public" as administrator but that didnt
help. Any suggestions?

Regards,
Pravin

Reply With Quote
  #4  
Old   
Pravin
 
Posts: n/a

Default Re: Accessing Sql server 2005 as simple user - 07-11-2009 , 11:19 AM



Quote:
Did you map the Login to your database?

No, I am not sure how to do the mapping mentioned here. Bit new to this
area, would be useful if you can shed some more details. Thanks for your
assistance.

Regards,
Pravin

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

Default Re: Accessing Sql server 2005 as simple user - 07-11-2009 , 12:28 PM



Pravin (pravin (AT) nospam (DOT) com) writes:
Quote:
No, I am not sure how to do the mapping mentioned here. Bit new to this
area, would be useful if you can shed some more details. Thanks for your
assistance.
First you create a login with CREATE LOGIN, and it appears you already
have done this.

Then you need, while in that database, create a user in that database for
the login in question. This is actually simple:

CREATE USER username

It is possible to give the user a different name in the database from
the login, but there's no reason unless you like pranks.


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

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: 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.