Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upsizing DBF files
Message
From
17/01/2005 23:53:00
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
To
17/01/2005 15:47:07
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00977631
Message ID:
00977952
Views:
23
Dear Andrus,

You can use VFP's upsize wizard, however, you may find problems when you have logical field, and you're using MySQL server

Also, I solve this problem by setting the table structure in SQL server using its administrators, then as usual, create remote view with updatable field, and set SendUpdate=.T., then
USE tableA_server IN 0 NODATA
FOR icount = 1 to RECCOUNT("TableA")   && local tables
   INSERT INTO tableA_server (FIELDS) VALUES (DATA)
   SELECT TableA
      SKIP
ENDFOR
In this way, I can change the fieldtype while I upsize as I want... BTW, you have problem on date field, you can use
INSERT INTO tableA_server (orderdate) values (DATETIME(YEAR(TableA.orderdate),Month(TableA.orderdate),Day(TableA.orderdate)))
That lets VFP to handle the date format for you... also I would use smalldatetime for orderdate, since I don't need fragments of seconds...
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform