Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Borislav Borissov
  Where is Borislav Borissov?
 Borislav Borissov
 To: Ryan Lopez
  Where is Ryan Lopez?
 Ryan Lopez
Subject: RE: Primary Index
Thread ID: 104337 Message ID: 104348 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Databases, Tables and SQL Server
Date: Tuesday, August 15, 2006 10:27:21 AM         

> Hi Guys,
> Good day. I was just wondering, since primary index doesn't allow null and duplicated keys, why was it considering marked deleted records while validating.
> BTW, on the thread filter section, can we have search string? Or am I just missing it?
> Cheers.
> Ryan
> ~Do not reinvent the wheel, innovate~

Deleted records are puted in validation becuase they are not phisicaly removed, you always can RECOVER them. What will happen if you have inserted a new record with the same PK? If you want to exclude Deleted records from Primary index if you FILTER it for NOT DELETED(), but keep in mind that that kind of indexes can't be used for optimization in versions prior VFP 9 (I can't remeber right now the exact version).

Borislav Borissov


Primary Index Posted by Ryan Lopez @ 8/15/2006 9:24:04 AM
RE: Primary Index Posted by Eric den Doop @ 8/15/2006 9:32:45 AM
RE: Primary Index Posted by Ryan Lopez @ 8/15/2006 9:42:55 AM
RE: Primary Index Posted by Borislav Borissov @ 8/15/2006 10:27:21 AM