Magma Expert Licensed User Longtime User Jul 12, 2017 #1 Hi there... I just wanna answer if i want to open 2 tables of a database the same time i must use this: Code: Copy Dim db As MSMaria Dim db2 As MSMaria and must open the db two times / initialize it... and use different subs/events for every table ? Or there is a better way ?
Hi there... I just wanna answer if i want to open 2 tables of a database the same time i must use this: Code: Copy Dim db As MSMaria Dim db2 As MSMaria and must open the db two times / initialize it... and use different subs/events for every table ? Or there is a better way ?
DonManfred Expert Licensed User Longtime User Jul 12, 2017 #2 Magma said: andopen the db two times Click to expand... Why you need to open it multiple times? Upvote 0
Magma Expert Licensed User Longtime User Jul 12, 2017 #3 I want to use 2 tables at my app but when trying to open second with the same "db" getting error. Code: Copy db.Initialize("MySQL","192.168.168.3:3306","root","mypass","mydb") db.QueryASync("select * from products;","show1") db.QueryASync("select * from history;","history") Upvote 0
I want to use 2 tables at my app but when trying to open second with the same "db" getting error. Code: Copy db.Initialize("MySQL","192.168.168.3:3306","root","mypass","mydb") db.QueryASync("select * from products;","show1") db.QueryASync("select * from history;","history")
DonManfred Expert Licensed User Longtime User Jul 12, 2017 #4 Call both querys with the same connector. No need for a second connection Upvote 0
Magma Expert Licensed User Longtime User Jul 12, 2017 #5 The example above must work - if it is the same table ? Upvote 0
Magma Expert Licensed User Longtime User Jul 12, 2017 #6 WORKED - after restarting Mariadb Server... don't know what exactly was the problem. but thanks again! Upvote 0
WORKED - after restarting Mariadb Server... don't know what exactly was the problem. but thanks again!