473,387 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DTS package thru dot net

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/
Nov 20 '07 #1
1 1457
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

*************************************************
| Think outside the box!
|
*************************************************
"Kumar.A.P.P" <Ku******@discussions.microsoft.comwrote in message
news:F6**********************************@microsof t.com...
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/

Nov 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Alex Hunsley | last post by:
A while ago I found a mysql/php/webserver bundle of software for windows that installed all three at once and made it easy to start developing sql/php web apps. Now I can't remember what it was or...
2
by: s_gemberling | last post by:
Here is the code that calls the Oracle package: Function b_GetRecords(sTableName, sRecordName) on error resume next dim cmd, objParameter Set conn =...
1
by: Roger | last post by:
Are these two features available in VS.Net 2003 at all (maybe different keys)... F4 to go thru find-in-files search results (just like you F4 to go thru build errors). In VC6, if output window...
2
by: bdwgarth | last post by:
I have created a DTS package which transfers data from a SQL 2000 server table to a text file. Each time the package is executed the data in the text file is replace with the new data from the...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
8
by: Tcs | last post by:
I've been stumped on this for quite a while. I don't know if it's so simple that I just can't see it, or it's really possible. (Obviously, I HOPE it IS possible.) I'm trying to get my queries...
22
by: Liang Chen | last post by:
Is the file "bcopy.c" in the "libitery" directory the implement of the GNU C library function "bcopy"? If so, how can it run so fast?(copy-by-byte rather than copy-by-word) When I copy the code of...
6
by: BBFrost | last post by:
I'm using Net 1.1 (2003) SP1 & Windows 2000 Here's the issue ... Rows 12 thru 24 are selected in a datagrid. The user now unselects rows 12 thru 24 and selects rows 45 thru 70 ??? How can...
8
by: Shals | last post by:
Hi, I have a DTS Package created in SQL Server but the client wants to execute the DTS package from within MS Access by clicking a button. If any one can tell me how to execute that DTS from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.