Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Is it possible to identify a flat file connection?

$
0
0

I have a number of flat file connection managers in a package (as well as those connection to databases) and I would like to create a script task which will verify if all of the target files exist.

I know I can do this by parameterizing the connections and passing each of these variables into the script task, but this relies on new variables being added to the task as new connection managers are created. I also know that I can step through the Dts.Connections collection but can't see a property in there which differentiates a "flat file connection manager" from an "OLEDB connection manager", for example.

Is it possible to do this identification programmatically? Once I can find the flat file connection managers I can pass the ConnectionString into the "File.Exists" command.

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>