SELECT TOP ? * FROM MyTable
WHERE LEFT(MyTable.Col1,10) = ?
After having trouble, I did some reading and stumbled upon this example
http://www.select-sql.com/mssql/how-to-use-a-variable-inside-sql-in-ssis-data-flow-tasks.html
However, Im needing this within a foreach loop.
Suggestions?