简体   繁体   中英

Sql Server: Timeout expired, alternative solution

I'm using an application which has the ability to create a backup from an sql server, but the size of it creates an error:

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
The backup or restore was aborted.

What I am wondering is if I am able to change the time out time from Management Studio without altering the application.

And if there is no other way but to change the connecion string to the database, does adding a simple ;Connection Timeout=30 to the string solves this problem? The application is written in C#.

What I am wondering is if I am able to change the time out time from Management Studio without altering the application.

  • Yes, you can change the timeout in Management Studio . See this article .

does adding a simple ;Connection Timeout=30 to the string solves this problem?

  • No, that is the timeout when you connect to your SQL Server, not the query execution timeout.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM