Solved

Linked server is invisible in SQL server

Posted on 2013-06-24
7
498 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 48

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 48

Expert Comment

by:PortletPaul
ID: 39274607
have you used  sp_addlinkedserver at all?
0
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

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…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 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