View Single Post

   
  #1 (permalink)  
Old 03-01-2008, 03:03 PM
mamin@o2.pl
 
Posts: n/a
Default Output result of query to existing file

Hi,
I need to output result of my query to txt file. So I'm using -o
parameter, for example:

osql.exe -s (local) -d database1 -U sa -P sa -i 'c:\\queryFile.sql' -o
'c:\\output.txt'

But it clears existing output.txt file first and then outputs the
result, while I need to append the result of my query without clearing
existing file content. Is it possible ?

Reply With Quote