Page 1 of 1

MySQL database connection

Posted: Sat Jun 02, 2007 11:15 pm
by lsunw
Hi,

Anyone here know how to make a MySQL databse with DHPOS stock table?
Is it possible to make a third party program like APRINT to connect to MYSQL? by using MYSQL ODBC?

http://www.mysql.com/products/connector/odbc/

For example, everytime ring up sale with DHPOS, it will deduct the quantity item in the mySQL...the idea is to make the mysql as the main control inventory.

if this can accomplished then will safe allot of work to sync the stocktable in DHPOS and web application using mysql database such as ecommerce or web ERP.

mysql

Posted: Fri Jul 06, 2007 12:57 am
by marine64
In short No it is not possable. at least not at this time as there is no qbasic connector for mysql. however maybe oneday. sorry

Posted: Wed Jul 18, 2007 10:26 pm
by ZeeMan
Well, you don't neccessarially need to use QBasic. Theoretically you could look at the QBasic examples for accessing the stock table and figure out the equivelent commands for another launguage with access to MySQL, and then run the program in paralell with DHPOS.

Also, I think that it is possible to use DLLs with QBasic (I'm not sure though) so you might be able to use the QBasic examples and have them use functions from the DLLs to send their output to MySQL. I'm not sure about this though, so you'd have to test it out (don't forget to back up your files!)

Posted: Mon Jul 23, 2007 2:59 am
by lsunw
I also think so...but i'm not a programmer.

That why i post to see got anyone can help to write one that similar to APRINT...anyone here have done any similar program!?

Yes.

Posted: Sat Aug 18, 2007 7:36 pm
by Jonathan Simpson
It's possible to IMPORT the stock table into mysql using any of a variety of methods.

It's probably possible to export from mysql into POS, as well.

What is not possible is having POS use mysql as a stock table while running

Posted: Mon Aug 20, 2007 1:55 am
by lsunw
Not sharing same stock table...What I mean is when rung each sales, there a 3rd party program (like, APRINT) which will deduct the same stock no. which located in the mySQL database.

In this case, I only need to track only 1 stock table which is mySQL.

Posted: Thu Aug 30, 2007 9:48 pm
by bob5731
That would help in my pos for windows