Link to home
Start Free TrialLog in
Avatar of Leo Torres
Leo TorresFlag for United States of America

asked on

ADO.Net Source need to use variable query

I have an ADO.Net Connection that goes to a Teradata source. The query gets created on the fly by expressions and SQL TASK before I pass it to the ADO.Net Source but I cant figure out a way to pass my query to the ADO.Net Source.

The only 2 options I get are "Table and View" and SQLCommand
I tried SQLCOMMAND and placed the variable holding query in the input box but it failed.

OLE Source has the variable option to use a variable  for query. I cant user OLE because I dont have the drivers installed for Teradata. How can i get my query on to this ADO.Net source?
ASKER CERTIFIED SOLUTION
Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Leo Torres

ASKER

http://blog.reckonedforce.com/tag/ssis-use-parameter-with-ado-net-source-in-data-flow/

OK, so I answered my own question here looks like to do an expression on the source query you have to set the expression back on the control flow level not the Data flow level which is what makes sense and that's the way it is for OLE.

Now my issue has become the sort. chose the sore column but it still says its not sorted
User generated imageUser generated image