>Doug:
>
>This will be faster than digging through the SDT class code for the answer to a question that has come up here. This has also happened to me. Server crashes with the database open and the DCX is now corrupt. The next time I open the DBC, I get an error about the index does not match, delete and recreate. This is easy enough to do from VFP command window, I just erase the DCX, open the DB exclusive and issue a validate database which rebuilds the DCX.
>
>Is there anything in SDT that does this as well? I do know we can erase the DCX and open the DB exclusively so
validate database will recreate the DCX. At least that part works in runtime. I know the
recover option is not supported under runtime.
>
>Thanks!
... and the answer is...
YES!. If you delete the DCX, and use the SDT OpenData() method, the DCX will be rebuilt.
Mark McCasland
Midlothian, TX USA