分离数据库(Detach database).

  Many times, we often needs to detach our databases if we want to copy it to another database instances,or even another machine,

  here is a simple  t-sql command:

  

1 EXEC sp_detach_db 'AdventureWorks2012', 'true';

  Ref: msdn  and stackoverflow

你可能感兴趣的:(database)