N
noor
Hi, All
I connect to a MS SQL Server 2000 with SqlConnection (ADO.NET & C#) with
this connection string.
Server=SUN; Database=master; User ID=sa; Password=test; Connect
Timeout=1000;
And Submit these statements.
1- ALTER DATABASE [MyDB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
2- RESTORE DATABASE [MyDB] FROM DISK='c:\backup\mydb.bak' WITH RECOVERY
3- ALTER DATABASE [MyDB] SET MULTI_USER
I get this error message.
Timeout expired. the timeout period elapsed prior to completion of the
operation or the server is not responding.
And database set to "Loading" state and can not connect to it.
After this, When I restore Database with SQL Server Enterprise Manager ,All
is Ok.
Why I get this error with ADO.NET.
Thanks.
I connect to a MS SQL Server 2000 with SqlConnection (ADO.NET & C#) with
this connection string.
Server=SUN; Database=master; User ID=sa; Password=test; Connect
Timeout=1000;
And Submit these statements.
1- ALTER DATABASE [MyDB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
2- RESTORE DATABASE [MyDB] FROM DISK='c:\backup\mydb.bak' WITH RECOVERY
3- ALTER DATABASE [MyDB] SET MULTI_USER
I get this error message.
Timeout expired. the timeout period elapsed prior to completion of the
operation or the server is not responding.
And database set to "Loading" state and can not connect to it.
After this, When I restore Database with SQL Server Enterprise Manager ,All
is Ok.
Why I get this error with ADO.NET.
Thanks.