nopCommerce issue fixed (Could not obtain exclusive lock on database ‘model’)

When I install nopCommerce and create the database, the below issue happens.

 

Msg 1807, Level 16, State 3, Line 1
Could not obtain exclusive lock on database ‘model’. Retry the operation later.
Msg 1802, Level 16, State 4, Line 1
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

 

I search the google and find a workaround:

Disconnect and Reconnect your SQL Server Management Studio’s session. Your error will go away.

 

(While working on query optimization project, I encountered following error)

 

原文地址:https://www.cnblogs.com/leon916/p/2420687.html