SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Linked server reference not working.


Linked server reference not working.

Author
Message
Clarence Garraway-441470
Clarence Garraway-441470
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 13
Hello all,

I have a weird problem I need help on.

I'm developing on local SQL Server 2005 Express database and I need to write a query that needs to get data from a SQL Server 2005 Enterprise database hosted online (no admin access).

I have setup the online db as a linked server on the local db, but everytime I try to run a query through it I get a login timeout exception. The weird part is this:

- if I connect directly to the online db, using the same simple login, from Management Studio, the same simple query works fine.
- if I run the same code on the other side of the lan's firewall/proxy, it works fine and fast, whether I connect directly or go though the linked server reference.
- the firewall actually has an "allow everything" rule set, for the purposes of testing.
- all the code runs fine from my home, which has no firewall on the proxy.

I have no idea what's going on. Can anyone help?
grahamc
grahamc
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1432 Visits: 1039
What are the details of the linked server connection?

Have you got the correct name for the connection? for SQL connections the name of the linked server is used.
Clarence Garraway-441470
Clarence Garraway-441470
SSC Rookie
SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)SSC Rookie (26 reputation)

Group: General Forum Members
Points: 26 Visits: 13
Yes, if you read the post, the same code that doesn't work behind the firewall works outside of it and on other networks. I'm just wondering what esle could be preventing the linked server connection from working, especially when I can connect directly to the server in question.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search