First of all
Using sp_ as a prefix to a stored proc is considered a performance hit. SQL
Server will first look for this SP in master before the local DB.
Without doubt the best way to see how DTS hangs together is to build the
package in designer first and then save as a VB module. You can then see
the relevant parts of the package
Why are you doing this using code? Using code in the way I think you are
using it means that you are rebuilding a package every time.
From what I see of the thing you are trying to do are you trying to execute
a proc for every row in a table/csv file?
--
----------------------------
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"A Fu" <AFu (AT) discussions (DOT) microsoft.com> wrote
Quote:
Hello,
I'm trying to create a package programmatically. This package imports data
from a csv flat file to a db table. Actually, I don't even know if what I'm
|
trying to do here would work:
Quote:
I'm using DataDrivenQueryTask2 to call a stored procedure with 3
parameters. I've assigned "exec sp_UpdateCategories ?,?,?" to UpdateQuery
|
property. I've assigned Column objects to the UpdateQueryColumns property.
The parameters come from the csv flat file.
Quote:
I also have a Transformation2 object, and I specified the source and
destination columns.
When I run the program, the package is created successfully, but I get the
following error when I try to execute this package:
Data Driven Query: No query specification returned by Transform status.
Does anyone know what this means? I could provide the code if necessary.
Thanks very much.
A Fu |