|
#1
|
|||
|
|||
|
Create ODBC Connection
I have created an installer which installs a scheduling program for a particular task. This is done using code in the Post Install actions.
One of the other programs installed uses an ODBC connection and I am trying to get the installer to create this but without success. This code is also in the Post Install actions. Code:
ODBC.ConfigDataSource("{MySQL ODBC 5.1 Driver}", "DSN=FSG Callbacks\\0Database=Calbacks\\0UID=kevin\\0DESCRIPTION=FSG Callbacks\\0Driver={MySQL ODBC 5.1 Driver}\\0", ODBC_ADD_SYS_DSN);
I have tried with both MySQL 3.51and 5.0. Thanks in advance. Kevin |
|
#2
|
||||
|
||||
|
Here is an example for creating a system DSN called "IR_Forum" for MySQL ODBC driver 3.51:
Code:
ODBC.ConfigDataSource("MySQL ODBC 3.51 Driver", "DSN=IR_Forum;Description=Test;Server=localhost;User=root;Password=mysecret;Database=centralserver", ODBC_ADD_SYS_DSN);
Ulrich |
|
#3
|
|||
|
|||
|
Ulrich,
I had been looking in the Help File which set the elements should be separated by \\0 which is why I used that. when I get back to the machine I will try it semi-colons and see if that works. Thanks Kevin |
|
#4
|
|||
|
|||
|
Ulrch,
That worked. Thanks. Kevin |
|
#5
|
|||
|
|||
|
Quote:
I'm using version 7 Also did try to replace \\0, but the results is still nothing. Any suggestions? Tx Mike |
|
#6
|
||||
|
||||
|
Probably it will help if you enable a detailed install log and check there what is happening.
Ulrich |
|
#7
|
|||
|
|||
|
Hellow,
Where do i set the log to detailed? It is now set to Extended errors Result: Quote:
|
|
#8
|
||||
|
||||
|
Hello,
this is exactly what I needed to know. Have you noticed the error code? Error 3506 means: "The Driver argument was invalid, it could not be found in the registry." In other words, the driver you try to use seems not to be installed or available, or it does have another name in the registry, somehow. Have you tried to use the version 3.51 of the MySQL driver? It could be that there is something hosed with the newer driver. I have used the older driver a few times without trouble. Ulrich |
|
#9
|
|||
|
|||
|
OMG, That's it
3.51 has no problems at all!Many tx and enjoy the weekend! |
|
#10
|
|||
|
|||
|
Quote:
I think I see the reason. (read think )MySQL 3.51 Driver file is in de system32 dir. The MySQL 5.1 is in a folder under Program Files. That's why ODBC can't reconize the driver. Bye |
![]() |
| Tags |
| odbc |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using mysql with ODBC connection | jfxwave | AutoPlay Media Studio 7.5 Discussion | 7 | 08-15-2008 02:41 PM |
| How can I create an ODBC DSN? | sakbulak | Setup Factory 6.0 | 3 | 10-22-2003 09:29 AM |
| INFO: ODBC Configuration Runtime Notes | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-30-2002 03:22 PM |
| HOWTO: Create a Project Template | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-28-2002 02:49 PM |
| HOWTO: Create a Page Template | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-26-2002 06:20 AM |
All times are GMT -6. The time now is 07:02 AM.








3.51 has no problems at all!
)
Linear Mode

