Script running to Remote SQL Server is failed - Advanced Installer Community
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Script running to Remote SQL Server is failed

Hi Mihai,

I have a conflict regarding Script running through through AI-8.8.1 Remotely.
Establishment of SQL Server connection (Client to SQL Server 2008 through remotely) is successfully through parameter handling using dialog.
I performed this in SQL Scripts the passing parameters are...

Connection Type : Microsoft SQL Server /MSDE

Connection Mode: ODBC Driver

ODBC Driver : SQL Server

Server : [DBNAME_PROP]

Port : [PORT_PROP]

Username : [USERNAME_PROP]

Password : [PASSWORD_PROP]

I passed arguments like this and enter data in the SQLConnectionDlg only Server([SERVER_PROP]), Username([USERNAME_PROP]), Password([PASSWORD_PROP])

after entering data the CONNECTION was established successfully...

But When script running is starts, it shows an exception, i will attached it.
It throws Username is invalid...


How the Connection is established?????

Can your clarify my doubt

Thanks in Advance,
Udayk.
Attachments
If i pass parameter like this connection establishment and script running is successful.
If i pass parameter like this connection establishment and script running is successful.
sql-script-success-2.png (198.65 KiB) Viewed 6475 times
If i pass parameter like this connection establishment is successful but unable to script run what is issue?<br />What is the difference between these two process?<br />If i wrong for parameter passing, the connection was not established. what is the issue. please go through that.
If i pass parameter like this connection establishment is successful but unable to script run what is issue?
What is the difference between these two process?
If i wrong for parameter passing, the connection was not established. what is the issue. please go through that.
sql-script-success.png (174.61 KiB) Viewed 6475 times
This is Script runnin error,what i faced
This is Script runnin error,what i faced
Script-error.png (54.82 KiB) Viewed 6475 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Script running to Remote SQL Server is failed

Hi Udayk,

It seems the connection was not established successfully.

The correct approach includes the following steps:
1 - make sure the connection string is correct( including credentials ) by using another specialized tool like Microsoft SQL Server Management Studio
2 - use this article to test the connection string with Advanced Installer

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Script running to Remote SQL Server is failed

Thank you Mihai,

I resolve this issue

Thank you,
Udayk.
navyahbolli
Posts: 3
Joined: Wed Aug 27, 2014 8:18 am

Re: Script running to Remote SQL Server is failed

Hi,

I am trying to establish connection to oracle database to remote server, when i am trying to connect to local oracle database , my configuration is working fine but when i am trying to connect to remote server where my oracle is installed, it throwing username/password not valid, please let me know where i went wrong
Attachments
screen2.PNG
screen2.PNG (10.1 KiB) Viewed 6188 times
screen1.PNG
screen1.PNG (27.27 KiB) Viewed 6188 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Script running to Remote SQL Server is failed

Hello,

I'm not sure why you are encountering this behaviour. Can you please make sure that the Oracle Client is installed on your target machine from which you are trying to access the remote server and try again? For example, you can install Oracle Client on your installation machine and, then try to use the Oracle Client driver (e.g. Oracle in OraClient11g_home1). In order to check the existing Oracle drivers installed on your target installation machine you can run the following commands:

Code: Select all

%systemdrive%/Windows/SysWoW64/odbcad32.exe
and

Code: Select all

%systemdrive%/Windows/System32/odbcad32.exe
I've attached a sample, created with version 11.4.1 of AI, containing a custom SQL connection added in "SQL Databases" page which uses the following connection string:

Code: Select all

Driver={Oracle in OraClient11g_home1};Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];Dbq=[SERVER_PROP];
sample.aip
(17.15 KiB) Downloaded 371 times
The sample was successfully tested against an Oracle 11g server and client installation.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
navyahbolli
Posts: 3
Joined: Wed Aug 27, 2014 8:18 am

Re: Script running to Remote SQL Server is failed

But this approach didnt work for me to connect to Remote Database.
Attachments
Screen1.PNG
Screen1.PNG (28.09 KiB) Viewed 6146 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Script running to Remote SQL Server is failed

Hello,

Can you please manually test the ODBC connection between your Oracle Client and your Oracle server and make sure is working fine outside the installation package?

Also, you can take a look on the "ORA-12560: TNS:protocol adaptor error" thread which could be useful for you.

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

Return to “Common Problems”