[SQL] How to add test connection button for MS-SQL Server - 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!

alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

[SQL] How to add test connection button for MS-SQL Server

Hi,

version: 6.9.1

I would like to add in my dialog that contains SqlServerBrowseComboBox / SERVER_PROP a button for test the connection with a MS-SQL Server selection.


it is possible ?

thanks
Last edited by alavoler on Wed May 06, 2009 9:16 pm, edited 3 times in total.
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [SQL] How to add test connection button for MS-SQL Server

DoAction exe scriptinline:
Dim objCN, strConnection : Set objCN = CreateObject("ADODB.Connection") : strConnection = "Driver={SQL Server};Server=TEST;Trusted_Connection=TRUE" : objCN.ConnectionTimeout = 10 : objCN.Open strConnection : objCN.Close

well, i don't know how to catch error connection... hum
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [SQL] How to add test connection button for MS-SQL Server

Bad... script inline is restrict by characters....
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [SQL] How to add test connection button for MS-SQL Server

Hi,

Please note that the User Guide contains the Test SQL Connection how-to which may help you.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [SQL] How to add test connection button for MS-SQL Server

It's looks fine !

thanks Cosmin

Return to “Common Problems”