1
Vote

SqlConnection.ClearAllPools before drop database

description

SqlConnectionClearAllPools() call should be issued before drop database in install of the MSSQL provider.
The drop might fail otherwise because the database is in use.

comments

mieliespoor wrote Feb 2, 2010 at 4:49 AM

You can impliment this but this will only be used in testing enviroments. As soon as you impliment this in a 'real' solution you won't be dropping your database.

wrote Feb 13, 2013 at 3:52 AM