dbTalk Databases Forums  

recording filenames from a dts package

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


Discuss recording filenames from a dts package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Simon Whale
 
Posts: n/a

Default recording filenames from a dts package - 04-18-2006 , 06:00 AM






Hi

wondering if someone can point me in the right direction. i currently have
a DTS package that imports data from 300+ flat files and updates a main
table with results from it.

i need to add some additional checking which forces me to record the
filename and the results if they hit certain criteria.

my question is from using a modified version of the "SQLDTS.com Loop Import
and Archive (246).dts" (package, which i thank the creators for :-) )
can i record the filename that it is using into a table?

system: windows 2003, SQL Server 2000 sp4

many thanks
Simon



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

Default Re: recording filenames from a dts package - 04-18-2006 , 06:13 AM






Hello Simon,

Sure you can. The filename is held in a variable. You can then use an ExecuteSQL
task to insert this value into a table.


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi

wondering if someone can point me in the right direction. i currently
have a DTS package that imports data from 300+ flat files and updates
a main table with results from it.

i need to add some additional checking which forces me to record the
filename and the results if they hit certain criteria.

my question is from using a modified version of the "SQLDTS.com Loop
Import
and Archive (246).dts" (package, which i thank the creators for :-) )
can i record the filename that it is using into a table?
system: windows 2003, SQL Server 2000 sp4

many thanks
Simon



Reply With Quote
  #3  
Old   
Enric
 
Posts: n/a

Default RE: recording filenames from a dts package - 04-18-2006 , 06:16 AM



hi Simon,
After that all the files has been loaded you could check out every
connection (text file source) and to retrieve the value for the "Datasource"
property.

--
Please post DDL, DCL and DML statements as well as any error message in
order to understand better your request. It''''s hard to provide information
without seeing the code. location: Alicante (ES)


"Simon Whale" wrote:

Quote:
Hi

wondering if someone can point me in the right direction. i currently have
a DTS package that imports data from 300+ flat files and updates a main
table with results from it.

i need to add some additional checking which forces me to record the
filename and the results if they hit certain criteria.

my question is from using a modified version of the "SQLDTS.com Loop Import
and Archive (246).dts" (package, which i thank the creators for :-) )
can i record the filename that it is using into a table?

system: windows 2003, SQL Server 2000 sp4

many thanks
Simon




Reply With Quote
  #4  
Old   
Simon Whale
 
Posts: n/a

Default Re: recording filenames from a dts package - 04-18-2006 , 06:27 AM



thanks Allan,

found the exact article i need on sqldts.com

http://www.sqldts.com/default.aspx?234

Regards
Simon Whale

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Hello Simon,

Sure you can. The filename is held in a variable. You can then use an
ExecuteSQL task to insert this value into a table.


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Hi

wondering if someone can point me in the right direction. i currently
have a DTS package that imports data from 300+ flat files and updates
a main table with results from it.

i need to add some additional checking which forces me to record the
filename and the results if they hit certain criteria.

my question is from using a modified version of the "SQLDTS.com Loop
Import
and Archive (246).dts" (package, which i thank the creators for :-) )
can i record the filename that it is using into a table?
system: windows 2003, SQL Server 2000 sp4

many thanks
Simon





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

Default Re: recording filenames from a dts package - 04-18-2006 , 06:39 AM



Hello Simon,

Glad it helped.

Also there is this article

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
thanks Allan,

found the exact article i need on sqldts.com

http://www.sqldts.com/default.aspx?234

Regards
Simon Whale
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:f0343b03221c28c830f052440970 (AT) msnews (DOT) microsoft.com...

Hello Simon,

Sure you can. The filename is held in a variable. You can then use
an ExecuteSQL task to insert this value into a table.

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com
Hi

wondering if someone can point me in the right direction. i
currently have a DTS package that imports data from 300+ flat files
and updates a main table with results from it.

i need to add some additional checking which forces me to record the
filename and the results if they hit certain criteria.

my question is from using a modified version of the "SQLDTS.com Loop
Import
and Archive (246).dts" (package, which i thank the creators for :-)
)
can i record the filename that it is using into a table?
system: windows 2003, SQL Server 2000 sp4
many thanks
Simon



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 - 2010, Jelsoft Enterprises Ltd.