Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access sql or oracle database
Message
De
30/05/2005 09:07:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/05/2005 07:06:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 7
Divers
Thread ID:
01018495
Message ID:
01018515
Vues:
10
>any example for me , when i want using vfp to access sql server database, because i have using odbc before, is very slow and unconfortable.

It's not ODBC that's slow but generally either network or code requesting more than needed (or even backend). However ODBC would be slow if you're not using prepared calls or stored procedures but that's not fault of ODBC or OLEDB.
lnHandle=SQLStringConnect('DRIVER=SQL Server;SERVER=(local);DATABASE=pubs;'+;
   'Trusted_Connection=Yes')
lnResult=SQLExec(m.lnHandle, "select * from authors", 'crsAuthors')
SQLDisconnect(m.lnHandle)
select crsAuthors
browse
Is a simple one with no error checking (if lnResult is not > 0 check aerror()). On UT (and in help file) there are plenty of other samples connecting,querying,updating using RV,SPT,CA.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform