Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Connect SQL Server
Message
De
23/10/2007 09:30:49
 
 
À
23/10/2007 07:45:54
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 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01262742
Message ID:
01262775
Vues:
14
You could for example write something like this inside your VFP code to access the SQL db:

local lnSql as integer
lnSql = SqlStringConnect("SERVER=(local); UID=sa; PWD=sa; DATABASE=testdb;")
SqlExecute(lnSql, "SELECT * FROM testtable", "vfpcursor")
SqlDisconnect(lnSql)
select vfpcursor
browse normal

HTH


>Thanx for the update, Can U let me know where to write this syntax?
>
>Saif
robert.oh.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform