We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

SQL trusted connection not working correctly?

Hi,

I have a project that uses the SQLServerConnectionDlg and am experiencing some weird behavior.

When I UNcheck the trusted connection and enter a password, (user name is empty), the connection succeeds - INCORRECT behavior.
AI_SQL_TestConnection_Success.PNG
AI_SQL_TestConnection_Success.PNG (56.02 KiB) Viewed 5291 times
When I UNcheck the trusted connection and enter an incorrect user name and password, the connection fails - correct behavior
AI_SQL_TestConnection_Fail.PNG
AI_SQL_TestConnection_Fail.PNG (134.89 KiB) Viewed 5291 times
I have attached my project

Mike

NOTE: My database does have a user that uses SQL Authentication and the project does succeed when I use the correct user name and password
Attachments
DbInstallTest.zip
(12.42 KiB) Downloaded 250 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: SQL trusted connection not working correctly?

Hi Mike,

I tested the scenario and, indeed, I reproduced the behavior. It seems that the "SQL Server" driver uses the "trusted connection" method when an user name is not specified. We will investigate this and try to improve it in a future version of Advanced Installer. Thank you for bringing it to our attention.

Meanwhile, you can add some control conditions on the "Test Sql Connection" button so that it will be enabled only when the "Trusted Connection" option is checked or when an username and a password are specified.

Just let me know if you have any question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: SQL trusted connection not working correctly?

Hi Mike,

As I mentioned above, we will try to add an improvement to this in a future version of Advanced Installer. In the meantime, you can use the workaround suggested in my previous post.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: SQL trusted connection not working correctly?

You're welcome Mike.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”