System.Data.SqlClient.SqlError: RESTORE cannot process
database '<DbName>' because it is in use by this session. It is
recommended that the master database be used when performing this operation.
While restoring database, faced above issue.
Even though all services stopped, still restore database
given error that “Database is in use by this session”
Solution:
Connect to Sql server management studio:
Expand Security à Login à
Right click on “maximo” à Click Properties
“Default database:” value = <your
database name>. Change it to “master”.
No comments:
Post a Comment