Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL syntax - VFP vs. SQL Server
Message
From
26/07/2001 17:24:05
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00532360
Message ID:
00536046
Views:
13
Thought of two other things while reading the other responses here:

1) Date vs. datetime field types: SQL Server only supports datetime fields. If you try to do a query for a specific date-only value, you'll need to do a greater than/less than comparison.

2) Set access vs. row access: if you have Oracle experience you probably know about this one, but here goes. VFP natively allows access down to individual row levels within a table. SQL Server, on the other hand, works with sets of rows, usually the results of a select statement. You can navigate thru a result set in VFP thru SKIP, SCAN/ENDSCAN, etc., but there is now equivelant in SQL Server. To do this you have to load a result set into a cursor, and walk thru the cursor. The syntax for that can be kinda ugly but it is covered by the Books Online.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Reply
Map
View

Click here to load this message in the networking platform