Dsn creation - Advanced Installer Community
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Dsn creation

Hi Support,

We are trying to create a dsn for the sql server from the datasources tab and also setting the following attributes.

Description=Data Source for edesk
Server=192.168.1.129
Username"=sa
Password"=edesk
Translation Character Data=Yes
LogLongRunningQueries=No
Log Driver Statistics=No
Use Integrated Security=No
Use Regional Settings=No
Prepared Statements Option=Drop temporary procedure on disconnect
use FailOverServer=No
Use ANSI Quoted Identifier=Yes
Use ANSI Null,Padding, Warnings=Yes
Data Encryption=No
Change the default database to=No
LastUser=sa

All the attributes are getting set except the password. Attached the screenshot for reference. Please let us know your suggestions for setting the password.

Regards
Sony
Attachments
dsn.zip
(202.72 KiB) Downloaded 639 times
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Re: Dsn creation

Hi Support,

Please provide the updates at the earliest.

Regards
Sony
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Dsn creation

Hi Sony,

Sorry for the delayed response.

Can you please provide us with the project you created in Advanced Installer and a verbose log of the installation? We are not sure why this is happening.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Re: Dsn creation

Hi Bogdan,

Please find the sample project in the attachment. Please provide the suggestions at the earliest.

Regards
Sony
Attachments
Test.zip
(626.59 KiB) Downloaded 427 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dsn creation

Hello Sony,

We have tested the scenario and indeed we have replicated the behavior. However, please keep in mind this is the normal DSN installation behavior. Due to security reason Windows doesn't allow to store an SQL login password in a DSN. You can only store a password in a file DSN. Please take a look on "Is is possible to store username/password with the ODBC DSN?" thread which debates this issue.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Re: Dsn creation

Hi Daniel,

Thank you for the suggestions.

Could you please provide the detail steps for storing the passwords in the "FileDsn" and also let us know the steps how this password can be used by the "UserDsn".

Requesting for a detailed explanation.

Regards
Sony
sonu
Posts: 148
Joined: Tue Oct 30, 2012 10:04 am

Re: Dsn creation

Hi Daniel,

Could you please provide the update.

Regards
Sony
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dsn creation

Hello Sony,

Please excuse me for my delayed reply. In order to store the password in a file DSN you can proceed like this:
- go to Control Panel -> Administrative Tools -> Data Sources (ODBC)
- from the "Data Sources" dialog use the "File DSN" tab to manually "Add..." a file DSN
- after the file DSN is created you can open it with a text editor (e.g. Notepad.exe) so you can check its structure
- create an Advanced Installer project
- go to "Files and Folders" page and using our "Text File Updates" support add a new text file updates with an "Append/Create" content like this:
  • [\[]ODBC[\]]
    DRIVER=SQL Server
    UID=[USERNAME_PROP]
    DATABASE=[DATABASE_PROP]
    SERVER=[SERVER_PROP]
    Description=[DESCRIPTION_PROP
    PWD=[PASSWORD_PROP]
- build and run your project

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”