Home > Net >  Please everyone a great god help me have a look, in a database that can be executed, but in c #
Please everyone a great god help me have a look, in a database that can be executed, but in c #

Time:09-26

Everyone a great god, and the teacher to see video programming, is a little bit of content, thanks for you help

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 database

CodePudding 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 problem

CodePudding user response:

1, you see what kind of, finally the generated SQL is
2, you can use the string SQL=@ "",

CodePudding user response:

Suggest append (" XXXXXX ")

CodePudding user response:

Take sb content out when debugging and see
  •  Tags:  
  • C#
  • Related