dbTalk Databases Forums  

FileNames ??

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


Discuss FileNames ?? in the microsoft.public.sqlserver.dts forum.



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

Default FileNames ?? - 11-19-2003 , 03:32 AM






I am atempting to write a DTS to pick up text files from
a derectory to be imported into two tables Although all
the files will be in the same format, they will all be
have differnet names and extensions.

The DTS will be running as a task every few minutes, Is
there anyway to
1. build an array of the file names so that i can then
do the importing from the files
2. stop the DTS from running if it is aready running so
that i dont duplicate the imports?

any help would be greatefully recieved

Thanks



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

Default Re: FileNames ?? - 11-19-2003 , 04:40 AM






Have a look at this

Looping, Importing and Archiving
http://www.sqldts.com/default.aspx?6,103,246,0,1

--

----------------------------
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



"Peter Newman" <pete (AT) cashbacs (DOT) co.uk> wrote

Quote:
I am atempting to write a DTS to pick up text files from
a derectory to be imported into two tables Although all
the files will be in the same format, they will all be
have differnet names and extensions.

The DTS will be running as a task every few minutes, Is
there anyway to
1. build an array of the file names so that i can then
do the importing from the files
2. stop the DTS from running if it is aready running so
that i dont duplicate the imports?

any help would be greatefully recieved

Thanks





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.