A
Agnes
SELECT @sql = 'where voucherno =' + quotename(@voucherno,'''') + ' and recid
= ' + str(@recid)
As I print the above statment to check , the syntax is correct
Where voucherno ='GL123' and recid = 123
However, I got this error "Unclosed quotation mark before the character
string 'and recid = 123'
Please help
From AGnes
= ' + str(@recid)
As I print the above statment to check , the syntax is correct
Where voucherno ='GL123' and recid = 123
However, I got this error "Unclosed quotation mark before the character
string 'and recid = 123'
Please help
From AGnes