Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked DB -- availability function?

Status
Not open for further replies.

dswitzer

Technical User
Aug 2, 2002
298
US
I have an Oracle DB setup as a linked server -- which a DTS package hits early in the morning.

My problem is that if the linked DB is not available when the DTS runs -- it fails.

Is there a way to systemically check to see if the server is available? I guess I can do some sort of DTS quick query -- if it fails, wait for 5 minutes and try the query again until it works -- but it seems like that is not the best way to do this.

Any ideas?

Thanks.
 
Perhaps you could use OpenQuery() and see if you get a result like

SELECT COUNT(*) FROM OPENQUERY(YourLinkedServer,'SELECT stuff FROM YourOracleTable')

JHall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top