Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create VFP table from SQL Server table
Message
From
20/01/2006 16:33:42
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01088809
Message ID:
01089054
Views:
21
>>Does anyone know of a way to create a VFP table from a SQL Server table?
>>
>>TIA,
>
>
>SQLEXEC(sqlH, "SELECT * FROM SqlTable WHERE 1=0","crsVFPCursor")
>SELECT crsVFPCursor
>
>** 1.Using AFields
>    AFIELDS(laFlds)
>    CREATE TABLE MyVfpTable FROM ARRAY laFlds
>
>** 2. Just copy
>   COPY crsVFPCursor TO MyVfpTable && See HELP for details
>
Why not just:
SELECT * FROM crsVFPCursor INTO TABLE MyVFPTable
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform