S
Stefan Haubold
Hi,
I have written an utility that makes a backup (via SQLDMO) of a SQL
Server database, then issues various ADO.NET Commands to this
database. In case of any error it restores the database from the
backup (also via SQLDMO).
Problem is, when I want to do the Restore after an Error, the Restore
fails with the following error message "Exclusive access could not be
obtained".
I have made sure that all ADO.NET Commands close their respective
connections (via the using statement) so what am I missing here?
If I don't issue any ADO.NET Commands the Restore works just fine.
Stefan
I have written an utility that makes a backup (via SQLDMO) of a SQL
Server database, then issues various ADO.NET Commands to this
database. In case of any error it restores the database from the
backup (also via SQLDMO).
Problem is, when I want to do the Restore after an Error, the Restore
fails with the following error message "Exclusive access could not be
obtained".
I have made sure that all ADO.NET Commands close their respective
connections (via the using statement) so what am I missing here?
If I don't issue any ADO.NET Commands the Restore works just fine.
Stefan