sql数据库分离与附加

--sp_detach_db '20080401'
sp_attach_db  @dbname= 'wh',@filename1=N'C:/Program Files/Microsoft SQL Server/MSSQL/Data/20080401.mdf',
@filename2=N'C:/Program Files/Microsoft SQL Server/MSSQL/Data/20080401_log.ldf' 

你可能感兴趣的:(sql数据库分离与附加)