sql server - drop sql database vs dropping all tables -


after advice.

i'm using mssql, , have process requires clean slate each run. current process uses drop database , create new one. every , hit error being in use. in order eliminate annoyance, wondering if dropping tables better method.

what peoples thoughts on this?

if want remove database detach server, , attach prepared clean database. means no longer t-sql operation server maintenance operation. might quicker.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -