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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check a file exists

Status
Not open for further replies.

sedgely

Technical User
Joined
Feb 21, 2002
Messages
406
Location
GB
i am building a dts job to import a text file, however on occasions the file may not exist. is it possible for the DTS job to check for the existence of the file before attempting the import and end the job if it is not there?

Cheers, Craig
Si fractum non sit, noli id reficere
 

You can also use the FileExists method to check for the file - the link above checks to see if the file is empty.



======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top