dbTalk Databases Forums  

Check connection to db

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Check connection to db in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
YRAG1
 
Posts: n/a

Default Check connection to db - 06-23-2004 , 04:18 AM






Hello People,
Can any one tell me how to check if the connection between SQLServer and an AS400 (200 miles away) is enabled using a DTS Package, I want to make sure the connection is there before I execute the package, an ActiveX script would be great, also how can I exit from a DTS package if the connection is lost, I intend to execute the package every ten minutes.
Very much obliged to any suggestions that are submitted.



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Check connection to db - 06-23-2004 , 04:31 AM






The usual way would be to execute a dummy query against the server. What
you get back will determine the availability. If the connection is lost
during package execution then the associated task will fail and you can set
the package to fail on first error

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"YRAG1" <YRAG1 (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello People,
Can any one tell me how to check if the connection between SQLServer and
an AS400 (200 miles away) is enabled using a DTS Package, I want to make
sure the connection is there before I execute the package, an ActiveX script
would be great, also how can I exit from a DTS package if the connection is
lost, I intend to execute the package every ten minutes.
Quote:
Very much obliged to any suggestions that are submitted.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.