Is there a database built-in?

Just starting out? Need help? Post your questions and find answers here.
pthien
Enthusiast
Enthusiast
Posts: 150
Joined: Sun Jun 29, 2003 9:39 pm

Is there a database built-in?

Post by pthien »

Does PureBasic have any sort of multi-user database built into it? Or do I have to use something like MySQL? I would like to offer a single .EXE file which can manipulate a database with other users on the network, without the user having to also install MySQL, if possible.

Thanks,
Phil Thien
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Pure uses any ODBC database.
Just go to control panel -> ODBC Admin and create a link to a database supported, then use the PB data base commands to work with it :P
pthien
Enthusiast
Enthusiast
Posts: 150
Joined: Sun Jun 29, 2003 9:39 pm

Post by pthien »

But then I need to have a user install another product which provides ODBC access, like MS Access, right? Is there any way to supply a single EXE which will do it all?

Thanks,
Phil
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

You can write in PB a connection, without the need to set ODBC via the control panel.

check: viewtopic.php?t=1835
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

pthien,

ODBC drivers for standard databases like MS Access and DBase are provided with windows.

You don't have to pay for them, and in the vast majority of cases they will have been installed by default.
ebs
Enthusiast
Enthusiast
Posts: 562
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Phil,

If you know SQL, you can use the free SQLite DLL (http://www.hwaci.com/sw/sqlite/) and the PureBasic SQLite library (http://www.reelmediaproductions.com/pb/ - click on "ASM Library" under "Code Archive").

I use this method and "IncludeBinary" the SQLite DLL into the PureBasic EXE file. Voilá - a complete SQL database application in one file!

Regards,
Eric
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

You can create and use Access databases on the fly - I did it in a little app I wrote when I first purchased PB. I'll gather the info up and post it soon..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Post Reply