Parameterized OLEDB source query

后端 未结 3 1143
情话喂你
情话喂你 2020-11-27 20:14

I am creating an ETL in SSIS in which I which I want my data source to be a restricted query, like select * from table_name where id=\'Variable\'. This variable

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 20:43

    Simple. Choose SQL command as the Data Access Mode. Enter your query with a question mark as a parameter placeholder. Then click the Parameters button and map your variable to Parameter0 in the Set Query Parameters dialog:

    enter image description here

    More information is available on MSDN.

提交回复
热议问题