"System.Data.SqlClient.SqlError: RESTORE cannot process database because it is
in use by this session. It is recommended that the master database be used
when performing this operation."
If you are using Microsoft.SqlServer.SMO set SqlServer.ConnectionContext.DatabaseName to "master".
If you are using TSQL, select master database (USE master).
Keys: error, smo, tsql, c#.
Subscribe to:
Post Comments (Atom)
1 comments:
If you're still experiencing problems, try to restart the service.
Post a Comment