SqlServer數(shù)據(jù)庫中如何附加沒有l(wèi)df的數(shù)據(jù)庫
來源:懂視網(wǎng)
責(zé)編:小采
時間:2020-11-09 15:36:21
SqlServer數(shù)據(jù)庫中如何附加沒有l(wèi)df的數(shù)據(jù)庫
SqlServer數(shù)據(jù)庫中如何附加沒有l(wèi)df的數(shù)據(jù)庫:AdventureWorks2012_Data.mdf 這幾個數(shù)據(jù)庫是codeplex上給的SQL Server12 的示例數(shù)據(jù)庫,沒有給對應(yīng)的ldf文件,不是我分離的。 https://sql2012kitdb.codeplex.com/documentation == CREATE DATABASE Adventu
導(dǎo)讀SqlServer數(shù)據(jù)庫中如何附加沒有l(wèi)df的數(shù)據(jù)庫:AdventureWorks2012_Data.mdf 這幾個數(shù)據(jù)庫是codeplex上給的SQL Server12 的示例數(shù)據(jù)庫,沒有給對應(yīng)的ldf文件,不是我分離的。 https://sql2012kitdb.codeplex.com/documentation == CREATE DATABASE Adventu

AdventureWorks2012_Data.mdf 這幾個數(shù)據(jù)庫是codeplex上給的SQL Server12 的示例數(shù)據(jù)庫,沒有給對應(yīng)的ldf文件,不是我分離的!!! https://sql2012kitdb.codeplex.com/documentation == CREATE DATABASE AdventureWorksLT2012 on (FileName='C:\Program Fil
AdventureWorks2012_Data.mdf 這幾個數(shù)據(jù)庫是codeplex上給的SQL Server12 的示例數(shù)據(jù)庫,沒有給對應(yīng)的ldf文件,不是我分離的!!!
https://sql2012kitdb.codeplex.com/documentation
==
CREATE DATABASE AdventureWorksLT2012
on (FileName='C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER2012\MSSQL\DATA\AdventureWorksLT2012_Data.mdf')
FOR ATTACH_REBUILD_LOG;
用這個命令可以重建一個ldf文件,然后就附加上了!!!
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
SqlServer數(shù)據(jù)庫中如何附加沒有l(wèi)df的數(shù)據(jù)庫
SqlServer數(shù)據(jù)庫中如何附加沒有l(wèi)df的數(shù)據(jù)庫:AdventureWorks2012_Data.mdf 這幾個數(shù)據(jù)庫是codeplex上給的SQL Server12 的示例數(shù)據(jù)庫,沒有給對應(yīng)的ldf文件,不是我分離的。 https://sql2012kitdb.codeplex.com/documentation == CREATE DATABASE Adventu