Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maxdb
Message
From
19/08/2004 21:48:20
 
 
To
19/08/2004 21:33:25
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Re: Maxdb
Miscellaneous
Thread ID:
00934741
Message ID:
00934746
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform