Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我刚刚从旧的 bak 文件创建了数据库,需要将数据库恢复到最新版本,但我没有最近的备份或 mdf 文件,只有 ldf 文件。如何仅从 ldf 文件中恢复数据库?
LDF 文件是数据库上所有事务的日志。由于它本身不包含任何数据,因此无法仅使用日志文件来恢复数据库。您可以使用日志文件进行数据库恢复,但只能与数据本身结合使用。