Hi,
I 'd like to know, how can I know if bcp has succeeded or not in stored
procedure.
I have case like this:
sa /P pw '
PRINT "OK"
ELSE
PRINT "Fail"
and results...
(1 row(s) affected)
output
--------------
DB-LIBRARY error:
Bcp: Unable to open host data-file.
(2 row(s) affected)
-----------
1
(1 row(s) affected)
OK
So, why result is 1 while bcp couldn't find file?
I hope someone could help on this...
-Mika-