I have this code here:
DECLARE @inputform varchar
SET @inputform = 'J61807017B'
SELECT * FROM test where text1 LIKE '@inputform'
This won't give me the desired output, but when i do like this it works:
DECLARE @inputform varchar
SET @inputform = 'J61807017B'
SELECT * FROM test where text1 LIKE 'J61807017B'
Any idea?
SELECT * FROM test where text1 LIKE @inputform