sma_soft
asked on
SQL Server Large Database Backup Error
SQL Server Large Database Backup Error
I have a large MS SQL Server 2000 database which its size is about 300MB.
I have written a C# .NET 2005 code for creating a backup of it, but I receive a "Timeout expired" exception.
I change the Connection Timeout property of the SqlConnection object, but I still receive the same error.
It takes a long time and Hard Disk activity , but no file is created.
But, when I use Microsoft Query Analyzer to execute the BACKUP DATABASE SQL Command, it works with no error(s).
aslan maloom nist che margeshe, Timeout am ke ziad mikoni baz engar na engar !
akhe masalan 3-4 minute am tool mikeshe, hard gher gher mikone, vali filesh create nemishe !
Any solution ?
Thank you,
I have a large MS SQL Server 2000 database which its size is about 300MB.
I have written a C# .NET 2005 code for creating a backup of it, but I receive a "Timeout expired" exception.
I change the Connection Timeout property of the SqlConnection object, but I still receive the same error.
It takes a long time and Hard Disk activity , but no file is created.
But, when I use Microsoft Query Analyzer to execute the BACKUP DATABASE SQL Command, it works with no error(s).
aslan maloom nist che margeshe, Timeout am ke ziad mikoni baz engar na engar !
akhe masalan 3-4 minute am tool mikeshe, hard gher gher mikone, vali filesh create nemishe !
Any solution ?
Thank you,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ConnectionTimeout is the to time to wait while trying to establish a connection. You're not having trouble with that, you're problem is the command takes a long time to complete.
What's the connection timeout value? You can set it to 0 (zero) so you won't be disconnected by timeout.