I am currently trying to build up the where clause of an SqlCommand.
SqlCommand
something similar to this
myCommand.CommandText = \"SELECT * \" +
May be you need
myCommand.CommandText = "SELECT * " + "FROM TABLE1 WHERE " + "@whereClause";