<p>I writing a report in Visual Studio that takes a user input parameter and runs against an ODBC datasource. I would like to write the query manually and have reporting services replace part of the where clause with the parameter value before sending it to the database. What seems to be happening is that the <code>@parmName</code> I am assuming will be replaced is actually being sent as part of the SQL statement. Am I missing a configuration setting somewhere or is this simply not possible?</p>

<p>I am not using the filter option in the tool because this appears to bring back the full dataset from the database and do the filtering on the SQL Server.</p>

It sounds like you'll need to treat the SQL Statement as an expression. For example:
```
```
="Select col1, col2 from table 1 Where col3 = " & Parameters!Param1.Value
```
```
If the where clause is a string you would need to do the following:
```
```
="Select col1, col2 from table 1 Where col3 = '" & Parameters!Param1.Value & "'"
```
```
Important: Do not use line breaks in your SQL expression. If you do you will get an error.
Holla back if you need any more assistance.