How to attach a database to a lost or damaged NDF File

Source: Internet
Author: User
Tags filegroup
In the forum, we can see that the NDF file is lost and there is no backup, so we cannot attach the database. I have also seen many answers on the Internet that the append fails without NDF. In fact, I tested it myself, even if there is no NDF.

In the forum, we can see that the NDF file is lost and there is no backup, so we cannot attach the database. I have also seen many answers on the Internet that the append fails without NDF. In fact, I tested it myself, even if there is no NDF.

Someone has encountered this problem on the forum.

5120 1024

5120 1024

1024 2048 10

10

10

10

Now we can see that all three tables exist, but the following error occurs when accessing the test1 table:

Msg 8653, Level 16, State 1, Line 1

The queryprocessor is unable to produce a plan for the table or view 'test1' because thetable resides in a filegroup which is not online.

Because the Filegroup in which the table is located is offline and has a website space, it cannot be accessed.

This article is from the "Pay attention to SQL Server Technology" blog, U.S. servers, and U.S. space. Please keep this source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.