Home > database >  Consult, c # update database't respond (update)
Consult, c # update database't respond (update)

Time:12-22

Instruction in SSMS is useful to get the c # did not reflect no error, the framework is to insert instructions copied to use so there is no clue, hope leaders help to see where there is a problem!

CodePudding user response:

You didn't perform, the comma2 add this sentence try again
SqlDataReader Dr=comma2. ExecuteReader ();

CodePudding user response:

You less 1 comma2. ExecuteNonQuery (); This!

CodePudding user response:

For your reference:

https://blog.csdn.net/yenange/article/details/6601556

CodePudding user response:

reference 1/f, kun jins kao kun jins kao response:
you didn't perform the comma2, coupled with the
try again?SqlDataReader Dr=comma2. ExecuteReader ();

The update should be ExecuteNonQuery ()... So embarrassed

CodePudding user response:

reference kun jins kao, 4/f, kun jins kao response:
Quote: refer to 1st floor kun jins kao kun jins kao response:
you didn't perform the comma2, coupled with the
try again?SqlDataReader Dr=comma2. ExecuteReader ();

The update should be ExecuteNonQuery ()... So embarrassed

Yes, but they use the same effect,

CodePudding user response:

Thank you, problem solved, it is less, when the small white one more business, thank you