Hi,
I use bcp with "queryout" and, instead of a query as select ... i call a stored procedure.
example:
bcp "exec mydb..my_stored_proc 'par1', 'par2'" queryout outfile.txt -c -t; -Slogin -Ppassword
I run this command from a dos shell and i get this error:
SQLState = S1000, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]BCP host-files must contain at least one column
If i run the same s.p. from Query Analyzer there are no problems.
Anyone can help me ?
Thanks
Gianangelo