dbTalk Databases Forums  

Dynamic input file

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


Discuss Dynamic input file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Flora Pho
 
Posts: n/a

Default Dynamic input file - 04-26-2005 , 02:52 PM






Hi,

Does the "Dir" function work in DTS VB Script language (SQL2kServer) ?
If not how can i put all the files contain in a directory as input file ?

Rgds

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

Default Re: Dynamic input file - 04-26-2005 , 03:25 PM






Are you looking for something like this

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

Does the "Dir" function work in DTS VB Script language (SQL2kServer) ?
If not how can i put all the files contain in a directory as input file ?

Rgds



Reply With Quote
  #3  
Old   
Flora Pho
 
Posts: n/a

Default Re: Dynamic input file - 04-27-2005 , 04:52 AM



It's quite what i want but is there a more simple way to do it using Dynamic
Task Properties ?

"Allan Mitchell" wrote:

Quote:
Are you looking for something like this

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

Hi,

Does the "Dir" function work in DTS VB Script language (SQL2kServer) ?
If not how can i put all the files contain in a directory as input file ?

Rgds




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

Default Re: Dynamic input file - 04-27-2005 , 01:10 PM



Dynamic Properties task will not IMHO help you here.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

Quote:
It's quite what i want but is there a more simple way to do it using Dynamic
Task Properties ?

"Allan Mitchell" wrote:

Are you looking for something like this

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

Hi,

Does the "Dir" function work in DTS VB Script language (SQL2kServer) ?
If not how can i put all the files contain in a directory as input file ?

Rgds






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

Default Re: Dynamic input file - 04-27-2005 , 01:11 PM



On saying that.

If all you wanted was one file then you would need to populate something else with the name of that file. The DP task would then
look to that external source. The "something else" could be an INI file, a table an Environment variable.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

Quote:
It's quite what i want but is there a more simple way to do it using Dynamic
Task Properties ?

"Allan Mitchell" wrote:

Are you looking for something like this

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

Hi,

Does the "Dir" function work in DTS VB Script language (SQL2kServer) ?
If not how can i put all the files contain in a directory as input file ?

Rgds






Reply With Quote
  #6  
Old   
Flora Pho
 
Posts: n/a

Default Re: Dynamic input file - 04-28-2005 , 03:54 AM



Hi,

I tried the first solution and it works well (xcept one error: true and not
"true")
Thx a lot

Rgds
Flora

"Allan Mitchell" wrote:

Quote:
On saying that.

If all you wanted was one file then you would need to populate something else with the name of that file. The DP task would then
look to that external source. The "something else" could be an INI file, a table an Environment variable.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

It's quite what i want but is there a more simple way to do it using Dynamic
Task Properties ?

"Allan Mitchell" wrote:

Are you looking for something like this

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Flora Pho" <FloraPho (AT) discussions (DOT) microsoft.com> wrote

Hi,

Does the "Dir" function work in DTS VB Script language (SQL2kServer) ?
If not how can i put all the files contain in a directory as input file ?

Rgds







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.