SQL Script (Connection) - 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!

jtlivio
Posts: 8
Joined: Fri Apr 24, 2009 6:00 pm

SQL Script (Connection)

Hi!

I am using a custom action in order to display my network SQL Servers via ODBC, fine works, but when i run the installer it allways assume [SERVER] not [SERVER]\[INSTANSE], although is select [SERVER]\[INSTANSE] in the combobox, any issue on this?

Thanks
Joao
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: SQL Script (Connection)

Hello,
it allways assume [SERVER] not [SERVER]\[INSTANSE], although is select [SERVER]\[INSTANSE] in the combobox, any issue on this?
Where and how are you trying to use the value in the combo box?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jtlivio
Posts: 8
Joined: Fri Apr 24, 2009 6:00 pm

Re: SQL Script (Connection)

I am using the default Dialog for SqlConnection, the user input the data assuming the Default variable "[DBSERVER_PROP], and the script is running "At Install", i don't have any other parameters configured, the script run's OK, but always create in the DEFAULT instance, and ignore the value of the combobox that have [SERVER]\[INSTANSE], so the [DBSERVER_PROP] is recognized, but always assume as i said the DEFAULT Server instanse.
Where and how are you trying to use the value in the combo box?
Clicking the "Next" button in the dialog Ready to Install it will fire the SQL SCRIPT.

Maybe i am missing something?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: SQL Script (Connection)

Hello,

Please make sure of the following:
- you are using the property associated with the combo box in your script
- that property has been defined on the Install Parameters page

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
t-man
Posts: 4
Joined: Mon Jan 25, 2010 1:40 pm

Re: SQL Script (Connection)

Hello!

Could it be a simple typing error? You wrote instanse instead of instance...

T-Man
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: SQL Script (Connection)

That's a very good observation, T-Man!
Yes, please make sure you've wrote the property name correctly.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jtlivio
Posts: 8
Joined: Fri Apr 24, 2009 6:00 pm

Re: SQL Script (Connection)

Hi!

The script will use the connection that is passed in the properties, see images attached.

Image

AND

Image

PS: Download the images to see all content

Thanks
jtlivio
Posts: 8
Joined: Fri Apr 24, 2009 6:00 pm

Re: SQL Script (Connection)

t-man wrote:Hello!

Could it be a simple typing error? You wrote instanse instead of instance...

T-Man
Hi!

Where should i look for "instanse" or "instance" in order to fix?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: SQL Script (Connection)

jtlivio wrote:... and ignore the value of the combobox that have [SERVER]\[INSTANSE], so the [DBSERVER_PROP] is recognized,
We are referring to what you wrote. We do not know where exactly you used that property.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”