Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

cscript WiRunSQL.vbs SELECT statement question

$
0
0
Our TFS build server is 2012.                            

In my build template, I have an InvokeProcess that calls the below cscript:               

cscript "c:\BuildDrop\WiRunSQL.vbs" "\\myServer\mySolSetup.msi" "SELECT Value FROM Property WHERE Property = 'ProductVersion'"
Then, I assign the stdOutput to a variable called ProductVersion.
Then, to check the value, I print ProductVersion to the log file by using WriteBuildMessage.
There are more than 1 results as shown below:
 - Microsoft (R) Windows Script Host Version 5.8
- Copyright (C) Microsoft Corporation. All rights reserved
- blank
- 1.0.0
- blank

Why does it return all those values, even though there should be only 1 value, ie 1.0.0 ?

Thank you


Viewing all articles
Browse latest Browse all 11941

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>