Solved

limitations of linkserver

Posted on 2013-01-29
3
121 Views
Last Modified: 2013-01-30
There is a stored proc in DB1 (SQL 2000) that deletes and inserts into a table in another database (DB2) in the same server.

But now the other database (DB2) had to be moved to another SQL 2008 server and henee linked server was created.

but now the sp fails.. because LS only reads.. no other permissions..

i thoughts about 'execute as', but that is not available in sql 2000..

what would recommend as the best practise to just give just enough permission to be able to do the del/insert into the other database.
0
Comment
Question by:25112
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 38831655
Seems like a permission issue to me, you can try creating the linked server using a the SQL login which has permission to delete on SQL 2008 Server.
0
 
LVL 5

Author Comment

by:25112
ID: 38832162
thanks.. i find that the linked server login did not have those permission..

now, i have a touble with this solution..

the linked server (destination) DB2 is being linked to many servers including DB1.. all the servers use the same readonly login (DataConnect_Login) to the DB2 database. Only this proc in one app needs more than read..

do you have any suggestion to keep this clean (in the above scenario)..

If DataConnect_Login is given update and delete on this login for this proc, then all servers have update/del permission on this table.. rather only DB1 needs this feature. (the idea is not to give DataConnect_Login more than read, but also keep it simple.. I am open to ideas.. if there is no other way, then will revert to the first option)

Is there any out of the box idea  beside the above?

thanks
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 38835832
>do you have any suggestion to keep this clean (in the above scenario)..
SPN will be your best shot, if you setup the SPNs you dont have to specify explicit SQL logins
Google for SQL SPN, its pretty simple to setup
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
monitoring configuration for SQL server DB 32 45
SQL - Show rows in two tables where sums are not equal. 2 28
SQL Server Resume 5 44
SQL 2014 missing dll from Bin? 3 31
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question