How to access value selcted by SQL Script in the installer

For all your non-technical questions.
arupkrdas
Posts: 18
Joined: Tue Aug 14, 2007 6:39 am

How to access value selcted by SQL Script in the installer

Postby arupkrdas » Mon Aug 20, 2007 4:19 am

How can i store/use a value selected by sql statment from sql server. the SQL goes some thing like this...
"SELECT DB_VERSION FROM TBL_VERSION"

now i want to use the the value of the field "DB_VERSION " selected by SQL and use it in the installer. But i am not being able to use it.

I have also tried using this
SELECT $CURRENT_VERSION$ = DB_VERSION FROM TBL_VERSION

Where $CURRENT_VERSION$ is declared in the Installer.

But not being able to access the value selected. How to do it?

CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Postby CandiceJones » Wed Aug 22, 2007 7:50 pm

Sorry, the SQL plug-ins do not write back to script variables or return data.
Candice Jones
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Re: How to access value selcted by SQL Script in the install

Postby Gizm0 » Thu Aug 23, 2007 5:00 am

You can create an sql script that writes data on a .txt file to a temp directory and read the content you want (return values) from there, for example, line by line.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation

mehran
Posts: 20
Joined: Tue Apr 22, 2008 12:17 pm
Location: Canada

Postby mehran » Thu May 01, 2008 10:49 am

Does anyone know how we can do this? How we can we save result of a sql script into a text file?

Roostar2004
Posts: 155
Joined: Mon Nov 12, 2007 11:59 am

Postby Roostar2004 » Fri May 02, 2008 7:58 am

I would also like to know how to do this


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 88 guests