SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 SQL Server user access issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

eidhan
Starting Member

1 Posts

Posted - 11/01/2012 :  12:39:37  Show Profile  Reply with Quote
Hi Experts,

I need help with one of the issues I am facing with SQL Server. I have two databases 1 and 2. Databases 2 has two tables. I need to give access to database 1 or a user in database 1 such that they can select and update the tables in database 2. These databases are in the same server.

In oracle, i would create the two users and grant select, update on TABLE_1 to user1.

I need an equivalent for sql server. Please Help

Regards,
Eidhan

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 11/01/2012 :  14:33:42  Show Profile  Reply with Quote
As far as I know, you will need to create the user in database 2 (i.e., create a user and associate the login with the user). You can do this from SSMS object explorere - right-click the login name under server level security, select properties, and then user mapping. After you do that, you would grant permissions on those tables to the user.


The picture on this page is very good at giving you a conceptual overview of the security hierarchy: http://msdn.microsoft.com/en-us/library/ms191465.aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000