Using bcp and Bulk Insert Cause Assertion in SQL Server

In Microsoft SQL Server, you can copy bulk datadatabase corruption using DBCC CHECKDB utility, you
between an instance of SQL Server and data file inface error messages, which states:
user-specified format, using bcp utility. You can use this1.Server: Msg 8909, Level 16, State 1, Line 1 Table error:
tool for exporting data from SQL Server tables orObject ID 0, index ID 0, page ID (1:105). The PageId in
importing large number of rows into the SQL Serverthe page header = (0:0).
tables. However, in some situations, inserting data in2.Server: Msg 8928, Level 16, State 1, Line 1 Object ID
SQL Server table using bcp utility may damage the2009058193, index ID 255: Page (1:105) could not be
database table and cause serious data loss. At thisprocessed. See other errors for details.
point, you have to use SQL Database RecoveryWhat causes this problem:
software to repair the damaged table, if you do notThe above issue may occur if the below conditions
have a complete backup in place.are true: You run bcp tool or Bulk Insert together with
In a practical scenario, you may come across anFIRE_TRIGGERS option. You import an SQL Server
assertion when you import data in the MS SQL Servertable having after trigger, and this trigger updates text
table, using Bulk Insert T-SQL command or bcp utility.column of other table.
The SQL Server database corruption may also occurIn such situations, you need to repair and restore
in such situations. Furthermore, you might encounter thedamaged SQL Server database using SQL Repair
below error message:tools. The applications are specifically designed to scan
"Server: Msg 823, Level 24, State 2, Procedureand Repair SQL database in all cases of corruption.
gfspTMAppendText, Line 20 I/O error (bad page ID)MS SQL Repair with these applications is totally safe
detected during read at offset 0x0000000024e000 inand simple.
file 'C:\Program Files (x86)\Microsoft SQLSQL Recovery software repairs and restores
Server\MSSQL\data\REPRO.mdf'."damaged SQL Server database, in all cases of
At the same time, you may get the below errors incorruption. It is compatible with Microsoft SQL Server
SQL Server log:2008, 2005, and 2000. The software restores all SQL
1.DateTime spid53 SQL Server Assertion: File:Server database objects, such as tables, reports,
<SpcAlloc.cpp>, line=466 Failed Assertion = '0'.forms, macros, data types, triggers, stored procedures,
2.DateTime spid53 Error: 3624, Severity: 20, State: 1.and constraints.
When you attempt to check database integrity and fix