0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DB server management studio リストア 空き容量 不足

Posted at

データベースバックアップ後の復元(リストア)でCドライブの空き容量が足りなくなった。
以下management studioでのファイル開放方法。

容量のデカいmdfや.ldfファイルを開放してあげる。

logファイルを見に行ったら案の定でかかった。
パスの例で自分のを載せる。
C:\Program Files\Microsoft SQL Server\MSSQL13.SQLEXPRESS\MSSQL\DATA

一応(お任せ)バックアップを取っておく。
対象のDBを右クリック→タスク→バックアップ。
現在のパスを削除して新規にバックアップ先を追加しOK。

完了したら
対象のDBを右クリック→タスク→圧縮。
ファイルの種類を「ログ」へ変更しOK。

バイト数が30GB程減った。
3000000 → 8000

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?