Author Topic: SQL client  (Read 6802 times)

0 Members and 1 Guest are viewing this topic.

Offline Juanjogomez

  • Forum Regular
  • Posts: 117
    • View Profile
SQL client
« on: July 15, 2018, 08:05:35 am »
Hello,
I have tried the example to work with SQL client, but it does not work with tables of more than 1 field. Only display the first. Can someone pass me the code to work with tables of several fields (the usual)?
Regards

FellippeHeitor

  • Guest
Re: SQL client
« Reply #1 on: July 15, 2018, 01:38:49 pm »
Hi there Juanjogomez, and welcome to the Forum.

I assume you're talking about http://www.qb64.org/wiki/SQL_Client

I don't remember anyone using that code for any real world projects, to be honest. Hope you can find a solution soon.

Fellippe.

Offline Juanjogomez

  • Forum Regular
  • Posts: 117
    • View Profile
Re: SQL client
« Reply #2 on: July 15, 2018, 03:00:49 pm »
Well, I was going to be the first. I have a billing program in QuickBasic and I thought to use Sql to update it
Thanks

Offline Juanjogomez

  • Forum Regular
  • Posts: 117
    • View Profile
Re: SQL client
« Reply #3 on: October 28, 2018, 03:34:55 pm »
Good news,
I went back to try the code and it works perfectly. With a table of 40 columns it reads all the data perfectly.
I am considering rewriting the entire program, including Inform, although it will take many months because it is a billing management program with 65 subprograms and I do not have much time.
I'll tell you if I decide to do it.
Thank you

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: SQL client
« Reply #4 on: October 28, 2018, 10:15:52 pm »
Where did you obtain mysql.dll since the .NET link is down? Could you possibly attach your copy here please?
In order to understand recursion, one must first understand recursion.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: SQL client
« Reply #5 on: October 29, 2018, 02:33:12 pm »
Hi
it seems that MySQL is version 5.6 used in examples of wiki made by Galleon
https://dev.mysql.com/downloads/mysql/5.6.html#downloads
Programming isn't difficult, only it's  consuming time and coffee

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: SQL client
« Reply #6 on: October 29, 2018, 02:51:40 pm »
Thank you for the link Tempo.
In order to understand recursion, one must first understand recursion.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: SQL client
« Reply #7 on: November 04, 2018, 01:45:08 pm »
Hi guys
I have gone depeer in the search of Mysql.dll

here the results:
1.
I downloaded before MySQL.DLL version 5.7, because I find first its link, but I get error !!!
So on one hand I have thought that it is not the real version used in the examples of wiki made by Galleon and I must get the right version of .DLL, but on the other hand I have thought that it seems very unuseful to make innovations without backward compatibilty... so I must get the right version of .DLL version 5.6

2.
to get the right file I download the complete system of MySQL for client and for server... and as you can see from pictures attached
on first I got MySQL.DLL version 5.6 32bit and examples on wiki works for a second and then I get the error1 posted as screenshot.
Why 32bit ? Because the
Quote
This page was last modified on 19 January 2013, at 23:25.
and Galleon talks about also QB64 SDL version...
However I got MySQL.DLL version 5.6 64bit after getting error1! But I have had another surprise! Please see at screenshot named error2. That is showed is the same error that I got with MySQL.DLL version 5.7! :-)

Here I attach a zipfile with the 3 Mysql.DLL  ver 5.6 32 bit , ver 5.6 64bit and ver 5.7 32 bit.

Who can confirm (have) the same results on his system?

Thanks to read


Programming isn't difficult, only it's  consuming time and coffee

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: SQL client
« Reply #8 on: November 04, 2018, 02:04:24 pm »
I have forgotten the link for info

https://dev.mysql.com/doc/#topic
https://dev.mysql.com/doc/refman/5.6/en/c-api-functions.html

to download
https://dev.mysql.com/downloads/installer/
To try code you need only MySQL Connectors, but I raccomande you to download the server if you must go deeper with MySQL
https://dev.mysql.com/downloads/mysql/
Programming isn't difficult, only it's  consuming time and coffee

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: SQL client
« Reply #9 on: November 04, 2018, 02:43:30 pm »
If you're using QB64 from the github repository, or from www.qb64.org, then you're using the standard 32-bit version of QB64 and need the 32-bit DLL to work with it.

Only if you're using QB64x64 from my site, (or built it on your own), will you need a 64-bit DLL.

If you're uncertain what you're running, just compile and test this:

Code: QB64: [Select]
  1. $IF 32BIT THEN
  2.    PRINT "You are on QB64 x32"
  3.     PRINT "You have QB64 x64"
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: SQL client
« Reply #10 on: November 05, 2018, 08:17:35 am »
Could just look at the top left corner of your IDE too.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: SQL client
« Reply #11 on: November 05, 2018, 08:45:20 am »
Could just look at the top left corner of your IDE too.

Except it's not always there (such as when you load a program and it displays the filename there).

_TITLE ideprogname + " - QB64"   <--- Like here.

Honestly, I guess it should always say "x64" or "x32", but I've just never taken the effort to search for all the places where _TITLE exists.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: SQL client
« Reply #12 on: November 05, 2018, 12:10:03 pm »
I had not noticed that it changes with _TITLE but it is always there when I start up the IDE.

It would be nice in the About message from Help menu, but that would depend on compiling?
« Last Edit: November 05, 2018, 12:13:35 pm by bplus »

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: SQL client
« Reply #13 on: November 05, 2018, 02:29:41 pm »
Hi guys

I have QB64IDEx32 and so it must use mysql.dll at 32bit.
But Running examples 1 and 2  taken from wiki about SQL I got that it works just for one max two seconds than it crashes and  the manager of crushing of windows starts like you can see in attachment called Error1.

The point of my message was
Quote
Here I attach a zipfile with the 3 Mysql.DLL  ver 5.6 32 bit , ver 5.6 64bit and ver 5.7 32 bit.

Who can confirm (have) the same results on his system?

Thanks
Programming isn't difficult, only it's  consuming time and coffee

Offline Juanjogomez

  • Forum Regular
  • Posts: 117
    • View Profile
Re: SQL client
« Reply #14 on: November 07, 2018, 02:28:55 pm »
Hi.

I do not know what version I use of mysql.dll because I downloaded it some time ago. It works perfectly for me on 64-bit windows 7.

If you want I can send it to you to try it.