Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 753645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:55:17+00:00 2026-05-14T14:55:17+00:00

How to remove traces of files marked as OFFLINE or DEFUNCT in Microsoft SQL

  • 0

How to remove traces of files marked as OFFLINE or DEFUNCT in Microsoft SQL server 2008?

I have been playing around with a setup where I create a database with 3 file-groups which are: Primary, FileGroupData and FileGroupIndex.
The clustered index is using FileGroupData and a non-clustered index is set to use FileGroupIndex. To simulate a disk failure I’ve shut down SQL server and manually deleted the files in index file-group.
To start the database I’ll mark the files ‘OFFLINE’, but after that I can’t delete the index files, which are now offline.

I don’t have backup of the files as they are merely indices, but that has the implication that I can’t restore the files and have their status as “ONLINE”.

How would you recommend removing the files and the file-group as they still show up in management studio under files/file-groups. Management studio is not able to delete them.

As far as I can tell this is different from the question posted in :
How do I remove offline Files from a SQL Server 2005 database

/Philip

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:55:18+00:00Added an answer on May 14, 2026 at 2:55 pm

    Have you tried DROP DATABASE MyBollixedDB?

    Basically, the entry still exists in sys.databases. You can’t edit this, of course, so simpyl DROP the DB. You can’t do any other operation on it because it’s offline (and utterly inconsistent)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does the NSFileManager method contentsEqualAtPath:andPath: create a dynamic checksum to compare two files, does
I have what I hope is not a unique situation... ...and I'm looking for
I'm working on a small memory tool which tracks allocations and deallocations, object sizes,
I've just read that you can exit an android application by simply calling: finish();
In my app.config I want to set 3 tracing levels (switches?): verbose, warning and
I'm trying to use System.Diagnostics to do some very basic logging. I figure I'd
I'm writing a custom capistrano task to minify my javascripts and want to handle
Configuration Error Description: An error occurred during the processing of a configuration file required
The question An open source program uses CVS for version control. I would like
I wrote a simple assembler using flex and bison . It worked perfectly until

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.