Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

OLE DB Source - can I use a parameter for doing a select top ?

$
0
0

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?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>