dbTalk Databases Forums  

Help with variable in query (SSIS)

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


Discuss Help with variable in query (SSIS) in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
billg51@yahoo.com
 
Posts: n/a

Default Help with variable in query (SSIS) - 01-18-2006 , 07:51 PM






I am trying to pass a date paramater into a query of a DataReader
Source, not an OLE DB database. I cannot get it to work, or actually
know where to start.

I am trying do something simple like this..

select * from table where datefield = MYDATEVARIABLE

Is it possible to pass variables to a DataReader? Any documentation or
help would be appreciated! Thanks.


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Help with variable in query (SSIS) - 01-19-2006 , 12:36 AM






Hello billg51 (AT) yahoo (DOT) com,

The property that needs changing is the SqlCommand property of the DR Source.
Look at your Data Flow task in the control flow part of your package. This
exposes that property from the pipeline through to the control flow. Because
of this you can now use Expressions to build the SqlCommand property.


Allan



Quote:
I am trying to pass a date paramater into a query of a DataReader
Source, not an OLE DB database. I cannot get it to work, or actually
know where to start.

I am trying do something simple like this..

select * from table where datefield = MYDATEVARIABLE

Is it possible to pass variables to a DataReader? Any documentation
or help would be appreciated! Thanks.




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.