CodePudding user response:
You are in SMSS, line, there is a newline space,Here you use apptext no newline, needs to have a space between the key space, or a mistake,
AppendText (" statement ");
CodePudding user response:
"From- & gt;" Add a space before from the from or use AppendLine can, but you have to do is write a line,
CodePudding user response:
To sb. The tostring () debugging results into the databaseCodePudding user response:
Sb. Append (" select... ");Sb. Append (" the when... );
Sb. Append (" from... );
Try the above format, each adding Spaces, next time error to sb. The ToString () on the content of the database, so you know where an error
CodePudding user response:
Use AppendLine, less space between the keywords, the debugging, can copy c # statements inside interrupt point to the database to perform you found the problemCodePudding user response:
1, you see what kind of, finally the generated SQL is2, you can use the string SQL=@ "",
CodePudding user response:
Suggest append (" XXXXXX ")CodePudding user response:
Take sb content out when debugging and see