科学の箱

科学・IT・登山の話題

SQLServer

databaseでmdf, ldfファイルが削除されない件

投稿日:2014年12月10日 更新日:

データベースがオフラインの時にdrop database[DATABASE_NAME]をすると物理ファイルは削除されないらしい。

*Dropping a database deletes the database from an instance of SQL Server and deletes the physical disk files used by the database. If the database or any one of its files is offline when it is dropped, the disk files are not deleted. These files can be deleted manually by using Windows Explorer. To remove a database from the current server without deleting the files from the file system, use sp_detach_db.*

 

メタ情報

inarticle



メタ情報

inarticle



-SQLServer
-

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

SQLServerで本番環境からテスト環境を作る際の手順

手順 データベースのスコープ確認 データベースのサイズ確認 データベース移行手順の確認( replication, backup/restore ) テスト環境と本番環境の比較 テスト手順 移行先リソ …

no image

SQL Serverでreportingの開発をする方法

SQL Server 2014とSSRSをインストールしてからアプリケーションを起動したところ下記のエラーが出た。   必要なモジュールはすべてインストールしているので特に問題はなさそう。イ …

no image

SQL Server Agentが見えない件

SQL Server AgentがSSMから見えないデータベースがあった。   権限の問題であることがわかった。 Could not find the Server Agent in SSM …

no image

トランザクションログの消去

長期間データベースを使っているとトランザクションログがたまりディスクスペースを圧迫する。この時にはログファイルを消去するとよい。 データベースのシュリンク USE [YOUR_DB_NAME] GO …

no image

Filestreamについてまとめておく

Filestreamを使うための準備(サーバー側) 設定についてはこちらでまとまっている。 Different ways to enable FILESTREAM feature of SQL Ser …

2014年12月
« 11月   1月 »
1234567
891011121314
15161718192021
22232425262728
293031  

side bar top



アーカイブ

カテゴリー