Can not delete the mdf and ldf files after detaching

Go to Sqlserver Configaration Tools and Stop the SqlserverExpress / MSSQLSERVER Service.

Now try to delete mdf file. It should allow to delete the file. If not, change ownership as described here

Please don’t forget to start back the service after delete.

Advertisements
By simplemsexchange Posted in SQL 2008

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s