Re: Execute Stored Procedure for ever record when importing?
From: Gregor Anton (nospamplease_at_hotmail.com)
Date: 03/10/04
- Next message: Wei: "DTS - Doc on "Insert Bulk""
- Previous message: anonymus: "changing pwd after creating the dts pkg"
- In reply to: Darren Green: "Re: Execute Stored Procedure for ever record when importing?"
- Next in thread: Gregor Anton: "Re: Execute Stored Procedure for ever record when importing?"
- Reply: Gregor Anton: "Re: Execute Stored Procedure for ever record when importing?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Mar 2004 13:19:43 -0700
I've tried to do that but I get an error: The Query Designer does not
support the EXEC SQL construct.
My Query for the lookup is exec sysdba.GetKey NULL, PICKLIST, XXXX
"Darren Green" <darren.green@reply-to-newsgroup-sqldts.com> wrote in message
news:JNcGq9FJm2TAFwDb@sqldts.com...
> In message <uQgcvMsBEHA.3284@TK2MSFTNGP09.phx.gbl>, Gregor Anton
> <nospamplease@hotmail.com> writes
> >Is it possible to execute a stored procedure for every record when
> >importing?
> >
> >I have a table with a number of rows that need to imported into a table
that
> >requires a unique key, this unique key is generated via a stored
procedure.
> >So what I'd like to do is call this stored procedure, grab the return
value
> >and map it to the destination id field and map all other fields from the
> >import table to the destination table.
> >
> >Any suggestions?
> >
>
> Use an ActiveX Script Transform, and call a DTS Lookup.
>
> How to Use Lookups in DTS
> (http://www.sqldts.com/default.aspx?277)
>
> --
> Darren Green (SQL Server MVP)
> DTS - http://www.sqldts.com
>
> PASS - the definitive, global community for SQL Server professionals
> http://www.sqlpass.org
>
- Next message: Wei: "DTS - Doc on "Insert Bulk""
- Previous message: anonymus: "changing pwd after creating the dts pkg"
- In reply to: Darren Green: "Re: Execute Stored Procedure for ever record when importing?"
- Next in thread: Gregor Anton: "Re: Execute Stored Procedure for ever record when importing?"
- Reply: Gregor Anton: "Re: Execute Stored Procedure for ever record when importing?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|