Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maxdb
Message
De
19/08/2004 21:48:20
 
 
À
19/08/2004 21:33:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Re: Maxdb
Divers
Thread ID:
00934741
Message ID:
00934746
Vues:
22
>I am connecting to a maxdb database with vfp7. Reading the doumentaion that comes with maxdb it has a fetch sql command, which seems to read, that it will fetch limited rows of data from a prepared sql statement. The documentaion that comes with it seems to be all for C++, which I am having real trouble trying to follow. Does anyone know of any resources that explains how the preperation of statements and fetching of the rows would work in VFP. Any help appreciated.

Darren:

I never used maxdb but if you have an ODBC driver for example, it should be fairly easy to connect to using SPT. Something like:
cConnectionString = "Driver={mySQL};" +;
   "Server=MyServerName;" +;
   "Option=16834;" +;
   "Database=mydb"
nHandle = SQLStringConnect(cConnectionString)
if nhandle < 0
   * error
   return .F.
endif
nResult = SQLEXEC("Select * from Mytable")
See
http://www.able-consulting.com/MDAC/ADO/Connection/ODBC_DSNLess.htm#ODBCDriverForMySQL
http://fox.wikis.com/wc.dll?Wiki~VFPCommandSQLStringConnect

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform