Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-03-15 : 08:07:46
|
| pjjaad writes "When using Bulk Insert I want to capture any corrupt data which is thrown out, by somehow getting the values for Row and Columnor by just getting the message string and saving it.Server: Msg 4864, Level 16, State 1, Line 1Bulk insert data conversion error (type mismatch) for row 7, column 8 (BackUpEndDate).I would like to capture these and pass them on to a reconilliation process I have developed.Question is How." |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2005-03-15 : 08:08:42
|
| You can use bcp instead of BULK INSERT, the -e option lets you redirect error-causing rows to a separate file. |
 |
|
|
|
|
|