|
Sometimes you have to insert N records and then the database connection times out.
Because the end of the code needs to turn the inserted record into an Excel file for download by the client, once the timeout occurs, some single encrypted information will be lost (such as md5 encrypted password), so it takes time and effort to update the password.
How can I handle this situation? Can C # catch SQL database timeout errors? Or is there any better way? ? |
|