Microsoft Knowledge Base Email Alertz

KBAlertz.com: Using Project Manager to add a description to a table's index when that table is part of a database (.dbc file) corrupts the database. You have to run the VALIDATE DATABASE command on the database container to repair it.

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 141354 - Last Review: September 30, 2003 - Revision: 3.1

FIX: Adding Description to Table's Index in DBC Corrupts Table

This article was previously published under Q141354

On This Page

SYMPTOMS

Using Project Manager to add a description to a table's index when that table is part of a database (.dbc file) corrupts the database. You have to run the VALIDATE DATABASE command on the database container to repair it.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. In the Command window, type the following commands:
       SET EXCLUSIVE ON
       CREATE DATABASE mydata
       MODIFY DATABASE mydata
  2. Add a new table, and add the first and last name fields to the table. Name the table Mytable.
  3. Create a regular index on the last name field. You do not need to add any data to the table.
  4. Close the Database Designer.
  5. In the Command window, type:
       CREATE PROJECT myproj
  6. Add Mydata to the project.
  7. Expand the data section to expose the fields and index for the table you created. With the index expression selected in the project, right-click and select Edit description. Enter any description.
  8. Close the project, and in the Command window type:
        CLOSE ALL
        CLEAR ALL
  9. Re-open the project and try to edit the database. Visual FoxPro will return the error message:
    FILE C:\VFP\mydata.dbc is an invalid database.

Example Resolution

The following steps should resolve this problem. Note that thes steps have been performed under Windows NT only; they have not been tested on other platforms.

  1. Close the project, and ensure that Mydata is open.
  2. In the Command window, type:
       VALIDATE DATABASE RECOVER
  3. Visual FoxPro will return the following information:
       Validate Database MYDATA:
       Rebuilding structural index.... Index rebuilt
       Object #8 (Index 'lastname'): Bad property types or lengths: 1. (Fixed)
Your description will be removed from the index and you can now make additional modifications to the table.

APPLIES TO
  • Microsoft Visual FoxPro 3.0 Standard Edition
  • Microsoft Visual FoxPro 3.0b Standard Edition
Keywords: 
kbbug kbfix kbvfp500fix KB141354
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please