分离数据库(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

posted @ 2014-01-17 20:16  wonkju  阅读(535)  评论(0)    收藏  举报