HighTechTalks DotNet Forums  

DTS package thru dot net

Dotnet General Discussions microsoft.public.dotnet.general


Discuss DTS package thru dot net in the Dotnet General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Kumar.A.P.P
 
Posts: n/a

Default DTS package thru dot net - 11-20-2007 , 05:40 AM






My requirement is as follows:
Dot net code calls a DTS package.
DTS package has a dynamic variable saying the input file given is xyz.xls in
some path on the drive, and it is mentioned to take data from Sheet1 of the
xls
However during code execution, the xls is renamed as say, abc.xls.
I am also changing the value of the variable with the new name of the file
However, the DTS fails execution saying it cannot find the rows to transform.
In actual, it is still searching for the file with name xyz.xls and not
taking the new file name for execution
--
Kumar.A.P.P
http://techaid.wordpress.com/

Reply With Quote
  #2  
Old   
Cowboy \(Gregory A. Beamer\)
 
Posts: n/a

Default Re: DTS package thru dot net - 11-20-2007 , 11:19 PM






Traditional COM based DTS? (like SQL 2000)

If so, you have to use a COM wrapper to get at the bits. One way is to
export the DTS package (or a high level package that calls the rest of the
bits in another package) as VB and compile using VS 6.0. You can then create
a COM wrapper.

Rather than continuing the complexity, how about code?
http://www.15seconds.com/issue/030909.htm

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
Quote:
Think outside the box!

*************************************************
"Kumar.A.P.P" <KumarAPP (AT) discussions (DOT) microsoft.com> wrote

Quote:
My requirement is as follows:
Dot net code calls a DTS package.
DTS package has a dynamic variable saying the input file given is xyz.xls
in
some path on the drive, and it is mentioned to take data from Sheet1 of
the
xls
However during code execution, the xls is renamed as say, abc.xls.
I am also changing the value of the variable with the new name of the file
However, the DTS fails execution saying it cannot find the rows to
transform.
In actual, it is still searching for the file with name xyz.xls and not
taking the new file name for execution
--
Kumar.A.P.P
http://techaid.wordpress.com/



Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.