Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #1544
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Erland Sommarskog <esquel@sommarskog.se> |
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: pitfalls of accessing linked server over WAN |
| Date | Wed, 21 Aug 2013 07:20:52 +0000 (UTC) |
| Organization | Erland Sommarskog |
| Lines | 26 |
| Message-ID | <XnsA2235F17C935BYazorman@127.0.0.1> (permalink) |
| References | <1c953ac5-0c12-4cfe-9c43-b688af51846e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 21 Aug 2013 07:20:52 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="5d404a5d864426cbf50ddbcd9433a6e4"; logging-data="23934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EMWxOUT5Df3h8v3rdO2H3" |
| User-Agent | Xnews/2005.10.03 Mime-proxy/1.4.c.4 (Win32) |
| Cancel-Lock | sha1:8MgtBJDjODUncylY7o2o9tn82Jo= |
| Xref | csiph.com comp.databases.ms-sqlserver:1544 |
Show key headers only | View raw
migurus (migurus@yahoo.com) writes: > The WAN is over stable dedicated circuit, but I'd like to hear what are > potential problems here, any suggestions on how to code for those > situations. Linked servers often mean hassle. > The query will be fired with customer calling in for status, if remote > server is not available for whatever reason I need the application to > get 0. Exactly what will happen depends on whether there is a plan for the procedure in the cache or not. If there is no plan in the cache, and the remote server is not available, you will get an error when the procedure is compiled and the TRY block is never entered. If the plan is already in the cache, the TRY block is entered, but I am not sure that the error is caught. In any case, for any such scenario where you want a certain behaviour you should test that your code behaves as expected. For a simple procedure like this one, I would recommend that you open a direct connection from the application instead. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
pitfalls of accessing linked server over WAN migurus <migurus@yahoo.com> - 2013-08-20 18:31 -0700
Re: pitfalls of accessing linked server over WAN Erland Sommarskog <esquel@sommarskog.se> - 2013-08-21 07:20 +0000
Re: pitfalls of accessing linked server over WAN migurus <migurus@yahoo.com> - 2013-08-21 17:24 -0700
Re: pitfalls of accessing linked server over WAN Erland Sommarskog <esquel@sommarskog.se> - 2013-08-22 08:48 +0000
Re: pitfalls of accessing linked server over WAN Lutz <news@invalid.invalid> - 2013-08-21 10:02 +0200
Re: pitfalls of accessing linked server over WAN migurus <migurus@yahoo.com> - 2013-08-21 17:21 -0700
Re: pitfalls of accessing linked server over WAN Lutz <news@invalid.invalid> - 2013-08-22 08:47 +0200
Re: pitfalls of accessing linked server over WAN bradbury9 <ray.bradbury9@gmail.com> - 2013-08-22 00:10 -0700
Re: pitfalls of accessing linked server over WAN migurus <migurus@yahoo.com> - 2013-08-22 11:32 -0700
csiph-web