all groups > sql server dts > august 2005 >
You're in the

sql server dts

group:

Newbie question - execute VB DTS package


Newbie question - execute VB DTS package mylkee NO[at]SPAM gmail.com
8/31/2005 9:00:28 AM
sql server dts:
Hi

I have created nice DTS package and saved it as .BAS file. How can I
customize and execute it now from C#.NET? I have found on the net that
I have to create custom task. I have customtask.dll, now I should
implement something new there or I can just use it? Can I set
properties from there like path of the Excel file used for importing
data?

thanks
Re: Newbie question - execute VB DTS package Allan Mitchell
8/31/2005 10:35:49 PM
Have a look at Gert's way of using DTS and .Net here

http://www.sqldev.net/dts/DotNETCookBook.htm

Allan





[quoted text, click to view]


Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
Re: Newbie question - execute VB DTS package mylkee NO[at]SPAM gmail.com
9/1/2005 1:05:21 AM

Thank you Allan, that is a way I am already executing DTS packages, but
can you change package properties like path of the Excel file (with
import data) in that way? I was told that I have to use Custom Task and
VBasic format of the package.
Re: Newbie question - execute VB DTS package Snoopy
9/2/2005 1:45:55 AM

[quoted text, click to view]

I found the answer .. I have to translate .BAS file to C#, and then
call it. Now I have problem with 'QueryInterface for interface
DTS.CustomTask failed', but it seems like lots of people do, too. I
have SP2, it doesn't solve it.
Re: Newbie question - execute VB DTS package Snoopy
9/13/2005 1:38:16 AM

I had popular 'QueryInterface for interface DTS.CustomTask failed'
error, but SP3 for SQL Server solved it and now it is OK, everything
works finally!
Re: Newbie question - execute VB DTS package Snoopy
9/13/2005 1:38:30 AM

SP3 for SQL Server solved it and now it is OK, everything works finally!
AddThis Social Bookmark Button