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
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
转载于:https://www.cnblogs.com/listened/p/3524543.html