I have a problem when I want to use a parameter of the type integer in the where clausule of my select commando.
WHERE afdboek.p_afdjaar = '+@parnextafdjaar
the parameter -> @parnextafdjaar is of the type integer.
When I want to execute this sp, an error is given
Server: Msg 207, Level 16, State 3, Line 0'
'Invalid column name 'h'
in the query, the column name 'h' is mentionned.
the error vanishes when I replace the parameter with a value (for example : 360)
could someone help me with this problem?
Björn, programmer >
:O>
WHERE afdboek.p_afdjaar = '+@parnextafdjaar
the parameter -> @parnextafdjaar is of the type integer.
When I want to execute this sp, an error is given
Server: Msg 207, Level 16, State 3, Line 0'
'Invalid column name 'h'
in the query, the column name 'h' is mentionned.
the error vanishes when I replace the parameter with a value (for example : 360)
could someone help me with this problem?
Björn, programmer >