Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CA: Native vs SQL Server /Logical vs Binary fields
Message
 
 
To
27/05/2003 13:48:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00793188
Message ID:
00793659
Views:
25
>When I used DST to upsize my FoxPro database to SQL Server, logical fields were changed to binary. Since FoxPro logicals have .t./.f. states and SQL binaries are 1/0, is it possible to write common query code and just change out the cursorAdapter or does every query have to check which source it is querying and produce two select statements?

You do not really need 2 SELECT statements. However, you need to handle the updates manually with the CA. That is provide your own UPDATE, INSERT commands in the CA for VFP to use when sending data back the the DB. There you will have to check if the data is native or SQL.

The best plan is not to use logicals in VFP. Use a N(1) field and only accept values of 0 or 1 just like a SQL DB. That way, upsizing any future apps is much easier and seemless.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform