Current location - Training Enrollment Network - Books and materials - Solve why the library management system of C# has been failing to borrow.
Solve why the library management system of C# has been failing to borrow.
Debugging is skillful, and the result of each step must meet the expectation, so that the result is correct. Therefore, first of all, you can check the connection results of sql statements before inserting them. After you get them, you can run them directly in the database query analyzer to see what the results are. 2. What is the root cause of the failure when executing insert? ExecSQL should provide specific reasons. If it is inconvenient, you can also check the database log. With all due respect, these two sql statements are best executed by transactions, stored procedures, etc. To ensure that they are not interrupted during concurrent execution.