MS SQl Server return selected value

Got a problem you cannot solve? Try here.
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

MS SQl Server return selected value

Postby tzachk » Wed Dec 10, 2014 4:27 am

Hi Francesco,

I'm trying to run an sql server select command. SELECT x FROM y.
How can I get the returned value?

Regards,
T.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MS SQl Server return selected value

Postby FrancescoT » Wed Dec 10, 2014 12:18 pm

Dear Tzachk,

you could try with using the SQLCMD tool.
http://technet.microsoft.com/en-us/library/ms162773(v=sql.110).aspx

If recall you could save the returned value in a file.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: MS SQl Server return selected value

Postby tzachk » Thu Dec 11, 2014 12:48 am

Hi Francesco,

Our server software is not installed on the same machine as the SQL server (that is usual case in most organizations), so using SQLcmd is impossible unless I install additional components which I want to avoid.

Any other way?

Regards,
T.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MS SQl Server return selected value

Postby FrancescoT » Fri Dec 12, 2014 5:17 am

Dear Tzachk,

unfortunately, it doesn't exist any other way ... unless you create a custom DLL or an EXE for such purpose.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 105 guests