Question
Smallint Issue
I have a list useridlist with values (1,2,3,4,5). This is a
list of userids in the user table. This userid is of type smallint.
I am passing the list 'useridlist' with varchar as type to a SP. In sp consider I have written like
select * from [user] where userid in (@useridlist)
The @useridlist is declared in SP as varchar. The query will come up to error as it is expecting of type smallint. So what can we do over in such a situation. Please Help!! Thank You!!
I am passing the list 'useridlist' with varchar as type to a SP. In sp consider I have written like
select * from [user] where userid in (@useridlist)
The @useridlist is declared in SP as varchar. The query will come up to error as it is expecting of type smallint. So what can we do over in such a situation. Please Help!! Thank You!!
