Error in validating Sql Credentials of users - Advanced Installer Community

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!

viral
Posts: 22
Joined: Thu Jun 23, 2011 9:07 am

Error in validating Sql Credentials of users

Hello,

I want to check whether credentials provided by End user for sql Authentication is correct or not. For which i have added SqlConnectionDlg and on the click of next i have called TestSqlConnection function in a custom action. Now my problem is "Installer doesn't show Error Message for wrong credentials or wrong server name. I get Connection time out error for wrong credentials." Please make a note that i am entering wrong Sql server Name too.

Please find the attached snapshots and let me know in case of further clarification.

Can you please tell me how to resolve this?

Thanks.
Viral
Attachments
SqlConnectionDlg.PNG
SqlConnectionDlg.PNG (125.66 KiB) Viewed 2906 times
Custom Action used for Validating
Custom Action used for Validating
TestODBC Connection.PNG (116.12 KiB) Viewed 2906 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error in validating Sql Credentials of users

Hi,

As our user-guide article says, "If the entered connection parameters are incorrect, a message box will display the detailed error information (ODBC Driver response).".

Can you please make sure you followed the tutorial correctly. This has been implemented multiple times without any problems so it should work on your machine too.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
viral
Posts: 22
Joined: Thu Jun 23, 2011 9:07 am

Re: Error in validating Sql Credentials of users

Hello,

I have used above installer tutorial for this. As per my observation it happens only when in input wrong server name, else its working fine.

Any comments on this ?

Thanks,
VIRAL
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error in validating Sql Credentials of users

Hi Viral,
As per my observation it happens only when in input wrong server name, else its working fine.
I'm afraid I don't understand. In the first post you said no error appears, but now you said it prompts you when a bad connection is used.

Also, can you please check the steps from the tutorial one more time, it won't take more than five minutes.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”