Is there to achieve On Error Resume Next?
insert into table1 select top 1000 columnname from table2
It should continue inserting the next record even if there is an error. It should not stop the execution. It should simply skip the errors.
thanks in advance.
Software/Hardware used:
ASKED:
September 4, 2009 10:28 AM
UPDATED:
September 5, 2009 2:54 AM
Doing a row by row insert of rows into the SQL Server will be many times slower than doing a single recordset insert.
When doing your insert into the table you should check the destination table, and only insert rows which do not exist.
Thanks very much.
Inserting row by row is a very slow process and using cursor on 50 million records is just not going to end the process.
Its good if we can capture the error and store it in log to know the cause.
I was looking for, if there is a way to ignore errors while Bulk Insert like I’ve mentioned in the query. Looks like the solution is to insert row by row only to ignore errors..
Thanks all again.