Suppose I have a Querystring defined as follows:
String MyTableCount = "SELECT"
+ "COUNT(*) AS TOTALCOUNT "
+ " FROM "
// and so on
How do I access the "TOTALCOUNT" value as I want to compare it's value to another value?
I was thinking something like the following:
if((MyTableCount.TOTALCOUNT) > 100 )
{
}
else
{
}
But this generates an error, as TOTALCOUNT variable needs to be defined.
MyTableCount.TOTALCOUNTdoes not make sense.MyTableCountis your query string, which you should pass to one of the query execution methods.