
When using MSSQL server in development, you may need to drop your database to have a migration/init script re-create the whole thing. If you fire off a quick ‘drop database DatabaseNameHere’, you’ll probably encounter an error “Cannot drop database ‘DatabaseNameHere’ because it is currently in use.” Here’s a command you can execute to stop any active connections and drop the…