Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP SQL vs SQL server
Message
From
19/10/2001 08:51:34
 
 
To
18/10/2001 14:45:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00570446
Message ID:
00570748
Views:
18
>I'm currently using VFP database, but would like to convert to SQL server soon. I do a lot of coding using the VFP SQL statements. Will I need to change these VFP SQL statements to be useable for SQL server database? How should I code database access now in VFP using VFP databases so that when I am ready to convert, not much code change is needed?




In addition to what others have told you, SQLServer does not have the concept of an empty datetime - {}. The closest is NULL, but then you can't test for EMPTY(datetimefield) - you'll have to go with ISNULL().

Also, you don't just make the query in VFP; you have to put your query in a string, then send that string to SQLServer using the SQLExec() function. And obviously, you can no longer use VFP's functions or a user-defined function (UDF) in the queries, since SQLServer won't know what to do with those.
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform