Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linked server is invisible in SQL server

Posted on 2013-06-24
7
Medium Priority
?
547 Views
Last Modified: 2013-06-30
Hello,

We work with SQL Server 2008 R2. I am attaching a screenshot with the [Microsoft SQL Server Management Studio] window to illustrate the problem.
I have created a linked server via ODBC DSN to Oracle database. The name of this linked server is ORACLE_DB, and you can see it in the list of linked servers in the left pane.
Connection test fine, and I can see all the tables in Oracle database if I expand that node.
When I execute the sp_helpserver, though, ORACLE_DB is not listed, as you can see in the Results pane. Another linked server I have (PRDDX5600) is visible both in treeview and in the results of execution of sp_helpserver.
When I try to execute a query using the ORACLE_DB linked server, I get an error "Could not find server 'ORACLE_DB' in sys.servers."
I hope I am missing something simple. I'd appreciate if anybody could push me in the right direction.
Management Studio window
0
Comment
Question by:nebfis
  • 4
  • 2
7 Comments
 
LVL 49

Expert Comment

by:PortletPaul
ID: 39273773
could you review this page, I believe it is relevant.

if this does not help, could you provide the complete (unabridged) error message?
(i'm assuming there was a bit more)
0
 

Author Comment

by:nebfis
ID: 39274579
Thank you for the link. I checked it, but it describes how to create linked server via GUI. That's exactly what I did. As I said in my original post, I even (of course) validated the connection, and I can see the list of tables on the linked server. And in the snapshot you can see the linked server in the treeview. That's what puzzles me.
As for complete error message, here it is:

Msg 7202, Level 11, State 2, Line 1
Could not find server 'ORACLE_DB' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.
0
 
LVL 49

Expert Comment

by:PortletPaul
ID: 39274607
have you used  sp_addlinkedserver at all?
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:nebfis
ID: 39274759
I created this particular instance of linked server via GUI, exactly as the link you've provided suggests.
0
 
LVL 38

Expert Comment

by:Jim P.
ID: 39274881
What do you get from EXEC sp_linkedservers ?
0
 

Accepted Solution

by:
nebfis earned 0 total points
ID: 39274920
I have found what the problem was. The short version of the story is: my panel with SQL Query was connected to a server, which was different to the server that was displayed in a treeview.
0
 

Author Closing Comment

by:nebfis
ID: 39287895
I didn't know different panes in SQL Management Studio can be connected to different servers.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

926 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