edit connection string for add instance value - Advanced Installer Community
choobok
Posts: 2
Joined: Sat Sep 06, 2014 11:58 am

edit connection string for add instance value

hi
version insttaled:11.4.1
and
sorry for poor English.
---
so i'm add edit box for give up instance value from user and this value inserted automatically by property to connection string but unfortunately i dont know syntax connection string.

-----------------------------------
info:
Property name: Instance_PROP
Init Event: not set
Subscribed event: not set
control Condition: not set
-----------------------------------

my string is this but not worke, how fix this?
Driver={[DBDRIVER_PROP]};Server=[DBSERVER_PROP][Instance_PROP];Port=[DBPORT_PROP];Database=[DBNAME_PROP];[SQL_AUTHORIZATION]

erro msg show me : ODBC connect: timeout exceeded

check attachment
Attachments
screenshot from customdlg
screenshot from customdlg
INSTACE.PNG (84.29 KiB) Viewed 2644 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: edit connection string for add instance value

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to have a clear view of your project settings can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
choobok
Posts: 2
Joined: Sat Sep 06, 2014 11:58 am

Re: edit connection string for add instance value

Thanks for attention Daniel

but as far i'm post this topic i'm try another option in adv installer . so everything is good and detected instace on new option.
this solution is worked for me:

0- install odbc driver 11 (downloaded from download censer Microsoft) support sql server 2008 r2
1- don't set any option in odbc adv installer
2- set SQL DATABASE :
2-1 - CONDITION:1
2-2 - CONNECTION TYPE: Microsoft sql server / msde
2-3 - ODBC DRIVER: ODBC Driver 11 for SQL Server (64bit) (MY SYSTEM IS 64 BIT SO YOU CAN SELECT 32 BIT VERSION IF NECESSARY)

2-4 - SERVER : [SERVER_PROP] -> (ALL OF PROPERTY I USE FROM SQLCONNECTIONDLG )
2-5 - PORT : automatic
2-6 - USERNAME : [USERNAME_PROP]
2-7 - PASSWORD PROPERTY : PASSWORD_PROP
2-8 - DATABASE: YourNameDb
2-9 - CREATE DATABASE IF IT DOSES NOT EXIST : CHECKED

3- ADD your script to PredefinedConnection from toolbar

4- add CustomConnection and set this parameters:
4-1 - condition : 1
4-2 - connection type: Microsoft sql server / msde
4-3 - connection string :
Driver={[ODBC_RES_PROP]};Server=[SERVER_PROP];Port=[PORT_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];Database=[DATABASE_PROP];
5-test your connection



i'm hope this manual useful for amator user's adv installer

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

Re: edit connection string for add instance value

Hello Choobok,

I'm glad you got this working.

Thank you for sharing your solution with us. Certainly this will help future users in the same situation.

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

Return to “Common Problems”