Skip to main content
Incorporated comment
Source Link
Paul White
  • 90.3k
  • 30
  • 424
  • 663

Using the BCP command I am generating files of SQL Server DB tables. The BCP command creates an empty file for each table when it's unable to dump data into the files. This can be caused by an error in query written or an empty variable is passed to the BCP command.

Is there any way we can capture these events as errors and make it return some error code?

I am performing this from a stored procedure. Is there any way I can handle this in SP?

Using the BCP command I am generating files of SQL Server DB tables. The BCP command creates an empty file for each table when it's unable to dump data into the files. This can be caused by an error in query written or an empty variable is passed to the BCP command.

Is there any way we can capture these events as errors and make it return some error code?

Using the BCP command I am generating files of SQL Server DB tables. The BCP command creates an empty file for each table when it's unable to dump data into the files. This can be caused by an error in query written or an empty variable is passed to the BCP command.

Is there any way we can capture these events as errors and make it return some error code?

I am performing this from a stored procedure. Is there any way I can handle this in SP?

Tweeted twitter.com/StackDBAs/status/682878628875624448
adding tag based on comment from OP that the work is being done via T-SQL sp
Link
user507
user507
deleted 40 characters in body; edited tags
Source Link
James Anderson
  • 5.8k
  • 2
  • 26
  • 43

Using the BCP command I am generating a files of SQL Server DB tables. The BCP command creates an empty filesfile for each table butwhen it's unable to dump data into the files due to any reason. (CanThis can be caused by an error in query written or an empty variable is passed to the BCP command is empty.)

Is there any way we can capture these eventevents as errorerrors and make it return some error code.

Any help on this highly appreciated.

Thank you.?

Using BCP command I am generating a files of SQL Server DB tables. BCP command creates an empty files for each table but unable to dump data into the files due to any reason. (Can be error in query written or variable passed to the BCP command is empty.)

Is there any way we can capture these event as error and make it return some error code.

Any help on this highly appreciated.

Thank you.

Using the BCP command I am generating files of SQL Server DB tables. The BCP command creates an empty file for each table when it's unable to dump data into the files. This can be caused by an error in query written or an empty variable is passed to the BCP command.

Is there any way we can capture these events as errors and make it return some error code?

Source Link
MySQL DBA
  • 512
  • 1
  • 4
  • 14
Loading