I\'m getting the error when accessing a Stored Procedure in SQL Server
Server Error in \'/\' Application. Procedure or function \'ColumnSeek\' expects parame
If Template is not set (i.e. ==null), this error will be raised, too.
More comments:
If you know the parameter value by the time you add parameters, you can also use AddWithValue
The EXEC is not required. You can reference the @template parameter in the SELECT directly.