Re: Check connection to db

From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 10:31:34 +0100

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@discussions.microsoft.com> wrote in message
news:7F9DF4C0-7508-481D-B7F7-B906D329E036@microsoft.com...
> 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.
>
>


Relevant Pages

  • Re: import 100+ tables from ACCESS to SQL Server w/ same structure
    ... Linked server needs to be pre-created and it is inflexible to change. ... DTS package is more flexible. ... Dim oTask ... The DTS should make the connection configuration flexible so ...
    (microsoft.public.sqlserver.dts)
  • Re: Asynchronous TCP server -- Misc. questions
    ... > I'm working with an asynchronous TCP server. ... > server executes the EndAccept method, it is accepting the connection. ... the socket is only available from EndAccept. ... > to execute the specified callback method and blocks on EndAccept until ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Script Controlled Dynamic Task Execution
    ... My package had three connections to three ... and each had a transformation for itself. ... After posting, I just created three packages for each connection, and my ... >> need to execute one transformation on a text file, ...
    (microsoft.public.sqlserver.dts)
  • Re: setup an offline connection
    ... If you are calling the package in VB then you can simply use the object ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... > the laptop to a client, I would like to modify the DTS package to ... > delete the connection to my computer and put the connection to their ...
    (microsoft.public.sqlserver.dts)
  • Re: Executing DTS from Code
    ... Now go to QA and execute the proc. ... Everything works fine on my development workstation which has SQL Server ... I moved the DTS package to the production server and ... runs the DTS package. ...
    (microsoft.public.sqlserver.dts)