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


Linked Server Errors


Linked Server Errors

Author
Message
Ben Kentzer
Ben Kentzer
SSC Veteran
SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)

Group: General Forum Members
Points: 243 Visits: 319
Hi All

I've got a set of servers which are providing data to a web service for display on a web page.

They're all running SQL Server Express 2012. They are Windows 2012 Server VM's running on 2 VMWare hosts (2 Express Servers per host).

I then have a server running SQL Server Standard 2012 which is used as the data processor. This is running as a Windows 2012 VM on the same VMWare host as Express servers 1 & 2.

To get the data from the main processing server to the Express instances I'm using linked servers (using TCP/IP).

The process is:
The SQL Standard machine calls a procedure on each SQL Express machine in turn, which copies the latest copy of the data into a parallel database (i.e. not the one currently being accessed by the web service). Once all are complete, the views that access the data are altered automatically to point at the new location.

Originally, the SQL Standard machine was just running a set of INSERTs, but the performance was so bad that I swapped it over to make the Express machines control the INSERTs.

This part of the process is part of a larger group of processes which are managed from a series of SSIS packages.

Clearly, as I'm writing this, there is a problem...

Every now and again, the copy over fails on the 4th server (it's always the 4th server, and never any of the other 3).
The messages I get are:

SMux Provider: The data is invalid.
OLE DB provider "SQLNCLI11" for linked server "<MyServer>" returned message "Communication link failure".
Session Provider: Physical connection is not usable [xFFFFFFFF].

To me, this smacks of a network failure. My concern is that it always happens on this server.

The other complication is that servers 1&2 (on VMWare host 1) are in one NLB pool. Servers 3&4 (VMWare host 2) are on a second NLB pool. The system that runs the updates doesn't use this though, and only uses the actual machine network connections.

Thank you for reading this far. It's a pain that it's an intermittent problem, and a pain that I have to explain a work around. I was hoping that there might be a quick fix!

Any thoughts? Other than - "wow that's a ridiculously over-complicated system' :-D

Thanks

Ben
John Jakob
John Jakob
SSC Veteran
SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)

Group: General Forum Members
Points: 250 Visits: 8
Well, don't have a good answer, but perhaps your observation about the failure always occurring on the last server
processed (i.e., your server #4) is significant.

Try changing the order of the server processing. Shuffle things around. For example, try making your server #4 the FIRST server processed (i.e., make it server #1), and see if that makes any difference...

Does the problem still occur when processing the same server? If the problem goes away, or if the problem now happens on the old server #3 (which has become the new server #4), perhaps you will want to begin looking at "resource" issues -- instead of "networking" issues...

Just a thought...

-john



Ben Kentzer
Ben Kentzer
SSC Veteran
SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)SSC Veteran (243 reputation)

Group: General Forum Members
Points: 243 Visits: 319
Thanks John - I'll give it a go. Helps point the finger in the right direction, I guess!
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