dbTalk Databases Forums  

Re: Handling Files in DTS

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


Discuss Re: Handling Files in DTS in the microsoft.public.sqlserver.dts forum.



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

Default Re: Handling Files in DTS - 08-13-2003 , 09:20 AM






Yep.

Add a qualifier when you pick up the files to say

for each fil in fold.files
if fso.GetExtensionName(fil) = "EXTENSION" THEN
Do Something
End if
Next




--

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



"Matt L" <mattclarson (AT) hotmail (DOT) com> wrote

Quote:
I have developed a DTS package ,with the help of Allan Mitchell-Thanks
Allan!, that loops through an assigned directory and loads the file
types designated to the appropriate table. The question that I have is
in DTS is there a way when looking at a particular extension to skip
by that file and move on to the next one and when all of the other
files are loaded and moved to their archive directory to stop the DTS
package leaving only the designated files with a certain extension in
the directory. (Sorry all I am a beginner in SQL Server and in DTS)

Thanks,

Matt



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.