How do I create a new VFP (OLEDB) table from an existing one using .NET?

前端 未结 3 821
忘了有多久
忘了有多久 2021-01-14 03:57

We have an application that creates a number of Visual Foxpro (DBF) tables. Each of those tables have a different schema, but they all contain a known date field.

I\

3条回答
  •  走了就别回头了
    2021-01-14 04:43

    You can simply do a:

    select * from myTable into table newTable [database dbName]
    

    as DRapp showed. However you may want to get indexes as well (if any) (BTW creating indexes via VFPOLEDB is not supported directly but you can do so using ExecScript() function). Then the easiest would be to copy the table's DBF, CDX (and FPT) files. VFP is file based.

提交回复
热议问题