Parameterizing a SQL IN clause on an integer column?

Posted by SkippyFire on Stack Overflow See other posts from Stack Overflow or by SkippyFire
Published on 2010-03-08T19:27:08Z Indexed on 2010/03/15 15:19 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

Jeff Atwood asked the original question about parameterizing a SQL IN clause, but I want to do this with an integer column. If I try the code from the original post I get the following exception, which makes sense:

Conversion failed when converting the varchar value '%|' to data type int.

Anyone try this before?

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-sever