SQL Command text with parameter OLEDB Source

不羁岁月 提交于 2019-12-24 15:27:20

问题


I am working with SQL Server Integration Services 2008. In my Data Flow task I got a OLEDB source. I choose SQL command as the Data Access mode and following is my sql text

Select * from table1 where ID=?

And from parameters tab my Parameter Name is zero "0" and value is coming from a package level variable.

I tried to replace the parameter name with "Parameter0" but I always get the same error that

Error: "No Value given for one or more required parameters"

But there is a value for my variable

Kindly help


回答1:


You are doing the right thing, but it is the "Preview" that is not working for parameterized source tasks. Try executing the package and you should be ok.



来源:https://stackoverflow.com/questions/20395364/sql-command-text-with-parameter-oledb-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!