Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 18th, 2004, 01:15 PM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default changing Text source file names

I have 2 packages: Package A reads all the files in a folder
Package B has a text file source connection, a SQL server connection and a task that will import the contents of the text file source into a table in the SQL Server connection

The purpose of package A is to read all the files in a folder loop through all the file names in the files collection and Load package B and pass to Package B the files to import.

I have Package A working to the point, I can not figure out how to dynamically change the file to process in the Package B Text File source.

any suggestions?

  #2 (permalink)  
Old August 18th, 2004, 02:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

You could try to use a Dynamic Step task, and execute package B using a stored procedure (using xp_cmdShell and dtsrun, and pass in the file path as a property) or through code. You will probably have to kick off package B once for each file in the folder.

Brian
 


Thread Tools Search this Thread
Search this Thread:

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to import a text file w/t changing row order lxj034000 SQL Server 2000 1 July 12th, 2007 07:04 AM
parsing a changing text file on the fly Kannkor VB How-To 0 November 14th, 2005 01:47 AM
Changing Checkbox Names deminpa Classic ASP Basics 1 August 4th, 2005 06:03 PM
CSV or Text file As a Report Record Source rickf Access VBA 0 February 12th, 2004 10:16 AM
CSV or Text file As a Report Record Source rickf Access 1 February 10th, 2004 07:37 PM



All times are GMT -4. The time now is 07:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.