chriscrowhurst
IS-IT--Management
I am having problem a getting a linked server to work. My problem is when I am running a query using a linked server to another server it is getting the following error for a particular user :
access to the remote server is denied because no login-mapping exists.
I have a user called "crystal2" on ServerA.
I have a linked server pointing to ServerB. In the linked server options I am selecting the following option in the security tab :
For a logon not defined in the list above, connections will: Be made using this security context (I then enter the credentials of the remote logon)
The user crystal2 has public role only, and is mapped to a database on ServerA with public and db_datareader rights only. Whenever crystal2 executes a query using the linked server, such as SELECT TOP 10 * FROM [ServerB].[Database].[dbo].[Tablename] it throws the error :
access to the remote server is denied because no login-mapping exists.
If I then change the rights user crystal2 has and add the sysadmin role, the linked server query works fine.
How do I get the query to work without adding the sysadmin role, as the crystal2 user should only have read only rights to the databases it is accessing?
access to the remote server is denied because no login-mapping exists.
I have a user called "crystal2" on ServerA.
I have a linked server pointing to ServerB. In the linked server options I am selecting the following option in the security tab :
For a logon not defined in the list above, connections will: Be made using this security context (I then enter the credentials of the remote logon)
The user crystal2 has public role only, and is mapped to a database on ServerA with public and db_datareader rights only. Whenever crystal2 executes a query using the linked server, such as SELECT TOP 10 * FROM [ServerB].[Database].[dbo].[Tablename] it throws the error :
access to the remote server is denied because no login-mapping exists.
If I then change the rights user crystal2 has and add the sysadmin role, the linked server query works fine.
How do I get the query to work without adding the sysadmin role, as the crystal2 user should only have read only rights to the databases it is accessing?