Solved

limitations of linkserver

Posted on 2013-01-29
3
120 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL trigger 5 21
sql server query 18 37
query optimization 6 14
changing page verifacation 1 27
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

856 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