Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
eidhan
Starting Member
1 Post |
Posted - 2012-11-01 : 12:39:37
|
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 HelpRegards,Eidhan |
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2012-11-01 : 14:33:42
|
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 |
|
|
|
|
|