To ask a question about your name ...
To avoid quoting in a string literal, use the escape sequence quote "" (the two quotation marks)
string a = @"He said ""Hi!""..."; // He said "Hi!"...
For more information on shielding, see MSDN .
Note that in your published code, the only shorthand line is the very first (from @ to it). Subsequent lines are not verbatim, so the correct escape sequence will be \" .
You can make it more beautiful with string.Format :
String formLookupPull = string.Format(@"SELECT value1, '{0}', '{1}' FROM lkpLookups" + @"WHERE ""table"" = '{0}' and ""field"" = '{1}';", tableName, columnName)
Daniel LeCheminant
source share