all groups > sql server (alternate) > november 2005 >
You're in the

sql server (alternate)

group:

Regarding BCP utility


Regarding BCP utility pankaj_wolfhunter NO[at]SPAM yahoo.co.in
11/28/2005 10:47:36 PM
sql server (alternate):
Greetings,
Just wanted to know if there is any parameter in BCP
utility that can ignore triggers, indexes and constraint defined for a
table?
any help will be greatly appreciated

TIA
Re: Regarding BCP utility Jens
11/28/2005 11:12:15 PM
No there isn=B4t, the only option would be to disable them prior sending
the actual statement.

HTH, Jens Suessmeyer.
Re: Regarding BCP utility pankaj_wolfhunter NO[at]SPAM yahoo.co.in
11/29/2005 12:17:07 AM
Actual i read something in BCP doc as below

"
-h "hint [,...n]"

Specifies the hint(s) to be used during a bulk copy of data into a
table or view. This option cannot be used when bulk copying data into
SQL Server 6.x or earlier.

Hint Description

CHECK_CONSTRAINTS Any constraints on the destination table are checked
during the bulk copy operation. By default, constraints are ignored.
Note that the max_errors option does not apply to constraint checking.
FIRE_TRIGGERS Specified with the in argument, any insert triggers
defined on the destination table will execute during the bulk copy
operation. If FIRE_TRIGGERS is not specified, no insert triggers will
execute. FIRE_TRIGGERS is ignored for the out, queryout, and format
arguments.
"

Does this mean that constraints and insert triggers will not be
checked, if not specified with this option?
AddThis Social Bookmark Button