All,
I am passing in the following varchar value into a
stored proc:
'4,5'
These 2 values are ID's for counties that are
seperated by a comma.
I want to do a select like this but get an error about
converting the varchar value '4,5' to a column of data
type int:
select County_ID, County_Name
from tblCounties
where County_ID in (@County_ID_List)
I tried the following with no luck:
set @County_ID_List = convert(int, @County_ID_List)
How can I convert this value to an int so that I cam
use it in my where clause?
Thanks,
Mark
I am passing in the following varchar value into a
stored proc:
'4,5'
These 2 values are ID's for counties that are
seperated by a comma.
I want to do a select like this but get an error about
converting the varchar value '4,5' to a column of data
type int:
select County_ID, County_Name
from tblCounties
where County_ID in (@County_ID_List)
I tried the following with no luck:
set @County_ID_List = convert(int, @County_ID_List)
How can I convert this value to an int so that I cam
use it in my where clause?
Thanks,
Mark