unable to delete, File is open

  • Hi am delete database but it says:

    cannot delete database because the file is open in sql server, I can see the database from:

    C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA

    but unable to deleted through right click- delete. plse advise.

    Thank you for your time.

  • If the database is still attached to the SQL instance then you won't be able to delete it via windows explorer.

    You can either delete the database from the SQL Server Management Studio Express or detach the database then delete the data and log files.

    ---------------------------------------------------------

    It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
    David Edwards - Media lens[/url]

    Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
    Howard Zinn

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply