Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I use foxpro command in sql server
Message
 
À
27/03/2006 09:23:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01107916
Message ID:
01108100
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform