Can I change ODBC Data Source Configon the fly? *Got it*

Can I change ODBC Data Source Configon the fly? *Got it*

Postby dutch » Sat Sep 02, 2017 3:07 am

Dear All,

I use Crystal Report with MySql. Can I change MySql/ODBC Data source configuration such as below by our program?
- Data Source Name
- TCP/IP Address
- User
- Password

Thanks in advance.
Last edited by dutch on Sat Sep 02, 2017 12:01 pm, edited 1 time in total.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Can I change ODBC Data Source Configuration on the fly?

Postby dutch » Sat Sep 02, 2017 3:43 am

I found page to update MySql ODBC by programming.
https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-examples-programming-vb-rdo.html
How to do with FWH?

Thanks in advance.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Can I change ODBC Data Source Configon the fly? *Got it*

Postby Maurizio » Mon Sep 04, 2017 7:03 am

I Use

oDSN := TDSN():Create( cODBC, "mastroODBC",cDbName ,cServer, cUser,1, 'C:\Program Files (x86)\MySQL\Connector ODBC 3.51\myodbc3.dll', val(nPort), cPassword )

Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 823
Joined: Mon Oct 10, 2005 1:29 pm

Re: Can I change ODBC Data Source Configon the fly? *Got it*

Postby dutch » Mon Sep 04, 2017 9:39 am

Maurizio wrote:I Use

oDSN := TDSN():Create( cODBC, "mastroODBC",cDbName ,cServer, cUser,1, 'C:\Program Files (x86)\MySQL\Connector ODBC 3.51\myodbc3.dll', val(nPort), cPassword )

Maurizio
http://www.nipeservice.com

Thank you so much, Maurizio. It's the one that I need. Where is TDSN Class?
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Can I change ODBC Data Source Configon the fly? *Got it*

Postby Maurizio » Mon Sep 04, 2017 12:49 pm

User avatar
Maurizio
 
Posts: 823
Joined: Mon Oct 10, 2005 1:29 pm

Re: Can I change ODBC Data Source Configon the fly? *Got it*

Postby dutch » Mon Sep 04, 2017 1:16 pm

Thanks once again, Maurizio
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Can I change ODBC Data Source Configon the fly? *Got it*

Postby Maurizio » Mon Sep 04, 2017 2:45 pm

Hello Dutch ,
what version of crystal report do you use ?
I use 8.5 and I have no problem creating the setup for customers .
I would like to use s 10 but I can't create the setup :(

Maurizio
User avatar
Maurizio
 
Posts: 823
Joined: Mon Oct 10, 2005 1:29 pm

Re: Can I change ODBC Data Source Configon the fly? *Got it*

Postby dutch » Tue Sep 05, 2017 12:50 am

Dear Maurizio,

I use CR XI R6 SP6 (11.5). Please check this site for runtime setup.
http://www.vdf-guidance.com/ContribPage.asp?Page=HOWTOPRNTCRXIRTI&ContribRecId=109
Maurizio wrote:Hello Dutch ,
what version of crystal report do you use ?
I use 8.5 and I have no problem creating the setup for customers .
I would like to use s 10 but I can't create the setup :(

Maurizio
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1540
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 31 guests