Hi Everyone:
I am trying to put a quotation mark on a variable, and I did as the following:
@SQL = 'select ....from....
where [Detail].[Detail Name] = ' + ''' + @DetailName + '''
but it does not work. and Can one please kindly tell me how to put quotation mark around a variable? thanks alot
I am trying to put a quotation mark on a variable, and I did as the following:
@SQL = 'select ....from....
where [Detail].[Detail Name] = ' + ''' + @DetailName + '''
but it does not work. and Can one please kindly tell me how to put quotation mark around a variable? thanks alot