Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS: Importing Data... 1

Status
Not open for further replies.

Sheffield

Programmer
Joined
Jun 1, 2001
Messages
180
Location
US
Greetings,

I have a *.txt file to import every month. Since my destination table has a column the *.txt file doesn't have, it requires me to Transform the mappings as seen below.
Code:
table Cols    *.txt cols
----------    ----------
ID            <ignore>
tvDataID      001
AirDate       002
AirTime       003
Station       004
TimeZone      005
Affiliate     006
City          007
State         008
Program       009
<Empty>       <ignore>
<Empty>       <ignore>
dmaName       012
dmaID         013
Is it possible to save this Transformation so it doesn't have to be repeated each month?

Thanks,:-)
 
Just save the import as a dts package.
 
Ok. Now how do I direct SQL Server to execute the DTC Package?

I scheduled it to run, but haven't seen any indication of it having done so. Moreover the expected data isn't in the table.

Help...
 
..oops. I meant to say, &quot;How do I direct SQL Server to execute the DTS Package I just saved?

I'd like to have it run each time I receive a new *.txt file, which would be sporatically, at best.

...still confused.
 
Try with the DTSRUN command:

if you can catch the receipt of the *.txt, launch a command shell with the command line &quot;dtsrun ...&quot; (see the SQL Books Online for the entire range of parameters like server name, DTS name, user name, ...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top