Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2004, 01:15 PM
Registered User
 
Join Date: Aug 2004
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?

 
Old August 18th, 2004, 02:27 PM
Friend of Wrox
 
Join Date: Jun 2003
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





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





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