I have written a dos batch file to
perform some sql commands using OSQL.
How can I get the return values from the
executed SQL into a batch variable?
For example,
osql -Uusername -Ppasswd -Q "select count(*) from table"
How can I get what the count(*) is.. I know I can output to
a file but that is really only pratical for a simple
statement like this.. If I have several statements
the file would be too complex to attempt extracting this number... wouldn;t it?
thanks
diane
perform some sql commands using OSQL.
How can I get the return values from the
executed SQL into a batch variable?
For example,
osql -Uusername -Ppasswd -Q "select count(*) from table"
How can I get what the count(*) is.. I know I can output to
a file but that is really only pratical for a simple
statement like this.. If I have several statements
the file would be too complex to attempt extracting this number... wouldn;t it?
thanks
diane