Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I use foxpro command in sql server
Message
 
 
To
27/03/2006 09:23:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01107916
Message ID:
01108100
Views:
16
>can i use in the code the foxpro command directly like
>use tablename
>browse
>or do i have to use something else
>thanks you

* open connection to SQL Server
lnFileHandle = SQLConnect("dsn name of your database")

* pull back data from a table into a VFP cursor
= SQLEXEC(lnFileHandle, "SELECT name FROM staff","cResult")

* browse data
select cResult
BROWSE

* discconect from SQL SERVER
SQLDISCONNECT(lnFileHandle)

Here is a link for how to translate your VFP SQL commands into T-SQL (SQL Server's type of SQL)
http://fox.wikis.com/wc.dll?Wiki~VFPSQL-TSQL-Mapping~VFP
Previous
Reply
Map
View

Click here to load this message in the networking platform