Groups | Blog | Home
all groups > sql server dts > may 2005 >

sql server dts : Urgent help with DTS



Chris
5/31/2005 6:29:10 PM
Hi,
I created a DTS package that creates an excel file and send via email. What
I notice was everytime I run the package, instead of overwriting the file, it
appand the new results to the file so I created an active x script task to
delete the file after it is being emaild but next time I run the package I
get the error

"transformed data undefined" The Microsoft jet database engine could not
find the object "New Table". "Make sure the object exists and that you spell
its name and path name correctly".

I then have to manually edit the transformation task by going under the
"Destination" tab and the click the create button to recreate the destination
table. Is there a way not to have that deleted after the activex delete the
file. Or is there another solution avail?

Ed
5/31/2005 8:01:01 PM
Chris
i think you need an execute sql task to create a table for the excel file.
you may want to use import/export wizard and check on Drop Table if existing
and save it as a DTS Package to look at it as a sample.

Edmund

[quoted text, click to view]
Allan Mitchell
6/1/2005 12:00:00 AM
If you delete your Excel spreadsheet then where is the data going the
second time?

If you are deleting the table then simply recreate it using an
ExecuteSQL task against the Excel connection using a CREATE TABLE
statement.

Allan

[quoted text, click to view]
Allan Mitchell
6/1/2005 2:33:26 AM
If you execute a CREATE TABLE statement against the Excel connection it will
create a Named Range/Table/Tab in the spreadsheet for you. If this is the
same definition as was previously defined then there will be no need to redo
mappings.

Allan
www.SQLDTS.com

[quoted text, click to view]
Chris
6/1/2005 7:39:02 AM
Hi,
I am a bit confused here. I my package design mode I have a OLEDB Object, a
MS Excel 97, Send Email, and Active x Script. They flow in the same order.
There is a transformation task between the connection and the excel file
object that selects the data and then dump it to the excel file then the file
is emailed and the active x deletes the file. The problem I have is when I
run the package again I get the error I described earlier and then I have to
edit the transformation between the connection and the excel objects and
recreate the table under the destination.

Thanks

[quoted text, click to view]
AddThis Social Bookmark Button