Is there a reason why you didn't drop the indexes and recreated them afterward ?
E. >________________________________ > From: Michael Madigan <[email protected]> >To: ProFox Email List <[email protected]> >Sent: Wednesday, April 18, 2012 7:59 AM >Subject: Re: VFP9SP2 - Error 2066: Index file "z:\data\costs.cdx" >tag"Njobid"iscorrupted. Please rebuild it. > >Was the original problem ultimately resolved? How so? > > >----- Original Message ----- >From: GérardLochon <[email protected]> >To: ProFox Email List <[email protected]> >Cc: >Sent: Thursday, September 8, 2011 2:44 AM >Subject: Re: VFP9SP2 - Error 2066: Index file "z:\data\costs.cdx" >tag"Njobid"iscorrupted. Please rebuild it. > >> >> Heck, I'd be tempted to do my own ZAP routine before going the DELETE ALL >> / >> PACK route... >> >> Function myzap >> parameter cTbl2Zap >> LOCAL cDataDir >> cDataDir = addbs(justpath(dbc())) >> >> select (cTbl2Zap) >> copy structure to (cDataDir + cTbl2Zap + "_tmpthing") database (dbc()) >> with CDX >> DROP TABLE (cTbl2Zap) >> USE (cTbl2Zap + "_tmpthing") >> copy structure to (cDataDir + cTbl2Zap) database (dbc()) with cdx >> drop table (cTbl2Zap + "_tmpthing") >> use (cTbl2Zap) >> >> return >> > >Be careful, with this routine you loose the primary key ! (converted in >candidate key by COPY STRUCTURE) > > > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

