You can achieve this by declaring a variable in you SQL Command and pass it a parameter then use this variable in the WHERE
clause. like the following
DECLARE @str AS INT
SET @str = ?
SELECT Column1
FROM Table1
WHERE (Column2= @str or Column3 = @str)


Other Workarounds
1)
Assuming you want to create the following query
Select * From Table1 Where [Column1] = ? Or [Column2] = ?
- Declare a variable (ex:
User::strQuery
)
- Store your parameter in a variable (ex:
User::Value
)
- Set the variable
EvaluateAsExpression
property to True
Set the expression to the following:
"Select * From Table1 Where [Column1] = " + @[User::Value] + " OR [Column2] = " + @[User::Value]
In the OLEDB Source
Set the source to SQL Command from variable
and choose the variable @[User::strQuery]
2)
You can create a stored procedure or a table-valued function that take one parameter and use it as source