dbTalk Databases Forums  

mapping a variable to a SQL parm in a Data Flow task

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss mapping a variable to a SQL parm in a Data Flow task in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default mapping a variable to a SQL parm in a Data Flow task - 07-05-2006 , 03:06 PM







using SQL Server 2005

I have a package variable that I want to map to a parameter that I'm
using in the WHERE clause of a SQL statement.

I'm getting this error on the Data Flow task when executing the
package:
'Value has not been set for parameter 1.'

How can I map that parm to the variable in a Data Flow task? In the
'Execute SQL Task' it's obvious how this is done, but I can't figure it
out in the Data Flow task


Reply With Quote
  #2  
Old   
amish
 
Posts: n/a

Default Re: mapping a variable to a SQL parm in a Data Flow task - 07-06-2006 , 02:20 AM







darren.harris (AT) thomson (DOT) com wrote:
Quote:
using SQL Server 2005

I have a package variable that I want to map to a parameter that I'm
using in the WHERE clause of a SQL statement.

I'm getting this error on the Data Flow task when executing the
package:
'Value has not been set for parameter 1.'

How can I map that parm to the variable in a Data Flow task? In the
'Execute SQL Task' it's obvious how this is done, but I can't figure it
out in the Data Flow task
In dataflow task , In OLEDB Provider , select data access mode as SQL
Command.

write query like
select * from test where id = ?

Select parameter tab on right and map parameter with variable


Regards
Amish Shah



Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: mapping a variable to a SQL parm in a Data Flow task - 07-07-2006 , 04:08 PM




How do you get to 'OLEDB Provider' from the dataflow task?

Thanks



amish wrote:
Quote:
darren.harris (AT) thomson (DOT) com wrote:
using SQL Server 2005

I have a package variable that I want to map to a parameter that I'm
using in the WHERE clause of a SQL statement.

I'm getting this error on the Data Flow task when executing the
package:
'Value has not been set for parameter 1.'

How can I map that parm to the variable in a Data Flow task? In the
'Execute SQL Task' it's obvious how this is done, but I can't figure it
out in the Data Flow task

In dataflow task , In OLEDB Provider , select data access mode as SQL
Command.

write query like
select * from test where id = ?

Select parameter tab on right and map parameter with variable


Regards
Amish Shah


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.