DTS Package using c#
- From: "TheBigJ" <jdufresne4@xxxxxxxxx>
- Date: 25 Apr 2006 07:21:42 -0700
This is what I need the DTS package to do:
I need to create a temp table, import the contents of a text file, add
some info to the temp table (done with stored procedures) and then add
the contents of the temp table to the permanent table and drop the temp
table.
I created the DTS package in Enterprise Manager and will be calling it
from a c# program.
In the c# program I set a global variable to be the file name without
the file extension (the file name will be the customer identifier and
is added to the temp table after the text file is imported) The reason
I need to use a temp table is because I may have more then one instance
of the DTS package running at one time for different customers and need
to make sure the info does not get crossed.
With the way the DTS package is currently set up, the temp table name
is #tmpGLOBALVARIABLE. I will know the name of the temp table when the
DTS package is called, but do not know how to change the transform data
task properties to load to the temp table. The temp table has the same
structure as the permanent table, so the transformations will already
be set, I just need to change the destination table in the c# program
before I execute the package.
Any ideas of how I can this, or where I may be able to look to find
information on this?
.
- Follow-Ups:
- Re: DTS Package using c#
- From: Allan Mitchell
- Re: DTS Package using c#
- Prev by Date: Re: HOW TO RUN A DTS FROM VB PROJECT
- Next by Date: Re: Ignoring certain lines in text import in DTS
- Previous by thread: Re: HOW TO RUN A DTS FROM VB PROJECT
- Next by thread: Re: DTS Package using c#
- Index(es):
Relevant Pages
|