I need to insert a base64 string into my sql server database. It ends in an equals sign "=" and I can't seem to do it without getting an "incorrect syntax near '='" error. Also, if the string begins with a number (say, "1aBgrfe="), then I get an error "incorrect syntax near 'aBgrfe='". The data type for the column is NVARCHAR(MAX). The sql insert statement in my c# program is
INSERT INTO MYTABLE VALUES ('" + myBase64String + '")
I understand that I may have to write a stored procedure, which I've never done before. Any help is appreciated. Thanks!
'and the"in the wrong order after the string variable.