ODBC Error -2147467259 when creating a data source - Advanced Installer Community
stefanL
Posts: 5
Joined: Thu Feb 06, 2014 5:21 pm

ODBC Error -2147467259 when creating a data source

Hello,

I have a per-user installation that creates a SQL Server (user) data source. At least until Advanced Installer version V10.5.1 the installation worked fine. I think it was since version 10.6. that the installation shows an error. The version history shows some changes regaring ODBC.

My installation project has a ODBC data source configuration similar to this:

Name: MyDbConnection
Driver Name: SQL Server
Registration: User
Attributes: DATABASE MyDatabase
Server: W2K8DC1/
Trusted Connection: Yes

When I execute the generated installation I get an error message during installation. The error exists on multiple multiple PC systems (Win 7/64 bit and Win 7/32 bit). I get the error message in German because I work on German systems. Translated to English it says something like:

Error when configuration the ODBC Data Source MyDbConnection, ODBC Error -2147467259: unknown error. Please check that the File SQL Server exists and you have access to it.

I tried already to delete the Data Source from the Installer Project and reimport the working data source again from the machine. That did not change anything.

I am currently working with Advanced Installer V10.9.1. I will reinstall V10.5.1 again to be able to provide my customers with working installations.

I you want I can send you my project and a MSI installation log file if you want me to.

Best regards,
Stefan
stefanL
Posts: 5
Joined: Thu Feb 06, 2014 5:21 pm

Re: ODBC Error -2147467259 when creating a data source

Hello,

I meanwhile checked if the server name "W2K8DC1/" could possibly cause the problem. I changed the slash to the more correct backslash "W2K8DC1\" and even removed the slash.
It didn't change anything => same error message.

Best regards,
Stefan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ODBC Error -2147467259 when creating a data source

Hello Stefan,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them? Also, can you try to manually create the user DSN and see if you succeed?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stefanL
Posts: 5
Joined: Thu Feb 06, 2014 5:21 pm

Re: ODBC Error -2147467259 when creating a data source

Hello Daniel,

thank you, I have sent you the files.

I do not have to check that I can create the data source manually, because the installation built with Advanced Installer 10.5 does it successfully. I see in the Windows ODBC settings, that on PC the non exisiting data source is created during installation as I want to. When I upgrade my installer project to Advanced Installer 10.6 or higher and execute the built installation, then the error occurs.

Thank you!

Best regards,
Stefan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ODBC Error -2147467259 when creating a data source

Hello Stefan,

Indeed, this seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing this to our attention. We will notify you when the fix will be out. Until then, as a workaround you can proceed like this:
- go to "Custom Actions" page and add a "Set installer property" custom action with sequence after "Install Execution Stage -> Searches" action group like this:
  • Property: AI_USE_STD_ODBC_MGR
    Value: 1
- build and run your project

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: ODBC Error -2147467259 when creating a data source

Hello,

This was fixed in version 11.0 of Advanced Installer released on March 13th, 2014.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”