⬅ Back deattach 2000 database.txt
use common select 'exec sp_detach_db "' + CompCode + '", "TRUE";' from Company_detail