科学の箱

科学・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

SQL文を実行前に正しいか確認する方法

SQL文を実行する前に句があっているかを確認したいことがある。 F5を押すとSQL文が実行されるCTRL + F5でSQLのパースだけされ、実行はされない。この時文に間違いがあれば指摘される。 &nb …

no image

SQL Serverでユーザーがデータベースにログインできないときに調べること

Loginユーザーが作成されているか Loginユーザーが作成されていなければ当然ログインできない。ユーザーはSSMSもしくはSQLによって確認できる。 Loginユーザーのパスワードが有効か Log …

no image

Filestreamについてまとめておく

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

no image

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

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

no image

SQL Server Agentが見えない件

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

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

side bar top



アーカイブ

カテゴリー