Home > Database > Mysql Tutorial > SqlServer 数据库中如何附加没有ldf的数据库

SqlServer 数据库中如何附加没有ldf的数据库

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:33:57
Original
1707 people have browsed it

AdventureWorks2012_Data.mdf 这几个数据库是codeplex上给的SQL Server12 的示例数据库,没有给对应的ldf文件,不是我分离的!!! https://sql2012kitdb.codeplex.com/documentation == CREATE DATABASE AdventureWorksLT2012 on (FileName='C:\Program Fil

AdventureWorks2012_Data.mdf 这几个数据库是codeplex上给的SQL Server12 的示例数据库,没有给对应的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文件,然后就附加上了!!!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Problem with tp6 connecting to sqlserver database
From 1970-01-01 08:00:00
0
0
0
Unable to connect to SQL Server in Laravel
From 1970-01-01 08:00:00
0
0
0
Methods of parsing MYD, MYI, and FRM files
From 1970-01-01 08:00:00
0
0
0
SQLSTATE: User login failed
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template