Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Linked Server with restricted access


Linked Server with restricted access

Author
Message
pradeep.mohan
pradeep.mohan
SSC-Enthusiastic
SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)

Group: General Forum Members
Points: 111 Visits: 322
Hi,

I created one SQL login with read-only permission to select the particular "VIEW" only. My question is how can i use this login into linked server 2008R2.

OR

How can i enable linked server with restricted access. I want to select one particular 'VIEW' from source database.

Its very urgent. Please help me.

Pradeep.

Pradeep
HanShi
HanShi
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3049 Visits: 3633
Just create the linked server connection and specify the user credentials in the code or in the "Security" page (when using the GUI).

EXEC master.dbo.sp_addlinkedserver @server = N'{FQDN_instancename}', @srvproduct=N'SQL Server'
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'{FQDN_instancename}',@useself=N'False',@locallogin=NULL
,@rmtuser=N'{username}',@rmtpassword='########'



** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
pradeep.mohan
pradeep.mohan
SSC-Enthusiastic
SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)

Group: General Forum Members
Points: 111 Visits: 322
Thanks for your quick response.

I am very new about this topic.

I cant able to view SQL objects after connecting the linked server. Remote login credentials should be in remote server or local server also?

Pradeep
HanShi
HanShi
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3049 Visits: 3633
You need access on both the source and the target.
You need access on the source to get to your starting point of the linked server. You need access on the target to access the objects on the other end of the linked server. The credentials for the target are defined in the linked server. The access on the source are the credantials to login to the instance. These credentials doesn't have to match the credentials in the linked server.

1. A linked server from Server X to Server Y is defined using credentials of User B
2. User A has access on Server X and is able to use the linked server
3. User A opens a connection to the target Server Y through the linked server
4. User A can access objects on Server Y using the credentials of User B

** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
pradeep.mohan
pradeep.mohan
SSC-Enthusiastic
SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)SSC-Enthusiastic (111 reputation)

Group: General Forum Members
Points: 111 Visits: 322
Thanks...

Pradeep
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search