SQL Connections and Running Scripts - Page 2 - 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!

mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connections and Running Scripts

Hello,

As far as I know, to run an SQL statement you would have to already be connected to an SQL Server using some credentials. The issue you described involves the installer cannot connect to an SQL Server with the given credentials.
If I am mistaken, can you please specify what is the statement you used to connect to an SQL Server with the same credentials?

In my last post, I suggested an SQL Management tool like the one from the following article:
http://msdn.microsoft.com/en-us/library/ms174173.aspx

The idea is to assure that with the credentials used in the installer, you can connect to the SQL Server using another tool, thus they are correct.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
proactis
Posts: 10
Joined: Thu Aug 04, 2011 11:36 am

Re: SQL Connections and Running Scripts

Any ideas why this won't work from the errors that I have posted?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SQL Connections and Running Scripts

Hi,

I'm afraid we don't know what is happening on your machine. In earlier post you said you managed to connect to your using an sql statement.
Can you please specify what is the statement you used to connect to an SQL Server with the same credentials?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Hi,
my requirement is, when i install my application it need to connect with oracle DB and store the installation script in it.
I am done with my application front part, but i am unable to connect to Database, :oops:
please help me out with exact procedure ,How to create inf files for driver or get inf files :?:
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Hi,
Attachments
I am getting the following error, please explain me step by step procedure , because i am beginner and i dont have any idea on this advanced installer
I am getting the following error, please explain me step by step procedure , because i am beginner and i dont have any idea on this advanced installer
2.PNG (10.46 KiB) Viewed 11859 times
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Please can any help me out how to connect to Oracle Database in advanced installer,
1. i created Sql Connection Dig in Dialog box
2. In ODBC
a) i added driver OBDC32.dll file
Driver Name: ODBC DRIVER
File: APPDIR\odbc\odbc32.dll
Set Up File: APPDIR\odbc\odbc32.dll

b)I added Data Source
Name:ODBC
Driver Name:ODBC DRIVER
Registration: User
c)Translator
Translator Name: ODBC
File: APPDIR\odbc\odbc32.dll
Set Up File: APPDIR\odbc\odbc32.dll
then when i build and run the application i am getting the following error
Attachments
3.PNG
3.PNG (7.69 KiB) Viewed 11859 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connections and Running Scripts

Hello and welcome to Advanced Installer forums,

Have you followed this user guide article before trying to implement the functionality into your main project?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Hi,

Can any one please help be to solve the above issue. i am getting the above error
Attachments
4.PNG
4.PNG (18.65 KiB) Viewed 11849 times
4.PNG
4.PNG (18.65 KiB) Viewed 11849 times
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Hi,

Ya i am using the user guide, i am following each and every step of it
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connections and Running Scripts

Hello,

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,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Hi,

I am very new to advanced installer, can u please suggest me what project type should i take ,to develop .exe file for my( flex4.0+spring+java) application.
FROM PAST 1WEEK I AM STRUGGLING WITH IT. :x
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connections and Running Scripts

Hello,

Here's the tutorial for authoring a java product installation. You can easily set the Spring theme for this type of package.

Also, if your application requires Flash Player, you can add it as a prerequisite:
http://www.advancedinstaller.com/user-g ... requisites

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Hi Mihal,
My Package has Database Credentials, how can i set my temporary Database in Set Up, Please let me know about it.
I am following user Guide, to Connect to driver it is asking me for INF files, what are driver inf files and where they are located in server, and which ddl file do we upload in application for oracle 10g :?:
navya
Posts: 55
Joined: Thu Jan 05, 2012 6:36 am

Re: SQL Connections and Running Scripts

Hi,

Can any 1 please tell me how my (flex+java)application communicates with database, do i need to set any environment variables for any XML files, please tell me"step by step". presently my application is in Tomcat, do i need to add tomcat folder for it. i am clueless :geek:
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Connections and Running Scripts

Hello,

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,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”