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.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 sp_addlinkedserver

Author  Topic 

actsql
Starting Member

34 Posts

Posted - 2010-05-14 : 10:37:22
I feel compelled to apologize in advance for my ignorance, however, I am not a trained administrator and am learning as I go with regard to writing code in SQL Server (we are on 2005). I have a query from Access that referred to 2 different SQL servers. I am trying now to code it into SQL, however, when I log into the one database, I cannot access the other and vice versa.

My online research has revealed sp_addlinkedserver as the solution, however, when I try to run that command I get an error that I dont have permission.

Can anyone recommend a book or other training media I can use to get up to speed on what I need to do? I need to know where to look at my permissions, what needs to change, what database I need to have permissions on, etc. Basically everything from the ground up.

Thank you.

A.C.

Kristen
Test

22859 Posts

Posted - 2010-05-14 : 10:43:20
Start with SQL DOCs - "Book online" that you can download / install on your PC (if you don't already have it).

That may answer your specific question on sp_addlinkedserver (the DOCs are "online" too on Microsoft's site if you just want to check that command first)
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2010-05-14 : 13:01:55
Well if you don't have authority (sa) to create a linked server, no amount of reading is going to help you



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-05-14 : 13:04:14
" no amount of reading is going to help you"

Although the DOCs do say what level of permissions you need - so the O/P, armed with that info, could request the necessary permissions perhaps?
Go to Top of Page

actsql
Starting Member

34 Posts

Posted - 2010-05-14 : 22:02:38
Kristen -

Is this the link you were referring to regarding the Microsoft books online: http://technet.microsoft.com/en-us/library/ms190479.aspx

Am I correct in understanding you have to be sysadmin to use sp_addlinkedserver?

A.C.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-05-15 : 04:10:09
"Am I correct in understanding you have to be sysadmin to use sp_addlinkedserver?"

Don't think so (although SYSADMIN can certainly do this task!!!), this is from the link you posted:

Permissions
Requires ALTER ANY LINKED SERVER permission.


(Note that link is for SQL2008, there is a back-link to SQL2005 if you are on an earlier version - in case it is different [I have SYSADMIN on all DBs here, so its not something I have committed to memory!]
Go to Top of Page

actsql
Starting Member

34 Posts

Posted - 2010-05-15 : 11:27:58
Thankyou. I will investigate the link back to 2005. That's what we are on still.
Go to Top of Page
   

- Advertisement -