首页 > 代码库 > sqlserver附加 mdf、ldf的方法(手记)

sqlserver附加 mdf、ldf的方法(手记)

exec sp_attach_db ‘bookstore‘,‘E:\homework\bookstore_Data.MDF‘,‘E:\homework\bookstore_Log.LDF‘

 

EXEC  sp_attach_db  @dbname  =  bookstore,     
@filename1  =  E:\homework\bookstore_Data.MDF,     
@filename2  =  E:\homework\bookstore_Log.LDF

 

sqlserver附加 mdf、ldf的方法(手记)