Re: Passing Parameters to a dts package
- From: "Suhas Vengilat" <SuhasVengilat@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Aug 2005 22:43:01 -0700
Hi Allan,
Thanks a lot for these info. I am going to try this and get back to you.
Thanks again.
Suhas
"Allan Mitchell" wrote:
> A quick and simple way is to build your SQLStatement like this
>
> Global Variables and SQL statements in DTS
> (http://www.sqldts.com/default.aspx?205)
>
> You can then pass in the values of the variables to the package using DTSRUN
> and the /A switch.
>
>
> OR
>
>
> depending how you call the package you could set the SQL Statement using the
> object model through code.
>
>
> OR
>
>
> You could use the first suggestion but have the package look up the values
> in a SQL Server table using the Dynamic Properties task.
>
>
>
>
>
> "Suhas Vengilat" <SuhasVengilat@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:48247E37-95E9-444D-9DAA-D52ADDE9D433@xxxxxxxxxxxxxxxx
> > Hi,
> >
> > Is is possible to pass parameters to dts package, that we need to run
> > using
> > dtsrun. I have a query like - select a,b,c from table where id in
> > ('x','y').
> > We need to parameterise the 'in' CLAUSE. What is there in the 'in' CLAUSE
> > can
> > be more than I have given and it frequently changes. Could someone give a
> > solution for this.
> >
> > Thanks in Advance
> > Suhas
> >
>
>
>
.
- References:
- Passing Parameters to a dts package
- From: Suhas Vengilat
- Re: Passing Parameters to a dts package
- From: Allan Mitchell
- Passing Parameters to a dts package
- Prev by Date: Re: Optimization of data migration
- Next by Date: RE: Using Python in ActiveX task - works when run as separate step, hangs when executing package
- Previous by thread: Re: Passing Parameters to a dts package
- Next by thread: Access Violation copying data
- Index(es):