Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access sql or oracle database
Message
From
30/05/2005 09:07:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/05/2005 07:06:52
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01018495
Message ID:
01018515
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform