G
Guest
I am copying a large amount of data into SqlServer using the new SqlBulkCopy class with Whidbey. It works fine.
But -- the insert trigger on the table that SqlBulkCopy is sending data to is not running. If I insert with a regular INSERT query the trigger fires...but if I do the insert with SqlBulkCopy it does not.
I understand that one can normally add a 'hint' to SqlBulkCopy/Insert commands (FIRE_TRIGGERS) if writing the query out manually that will tell the SqlServer to run Insert triggers.
Is there a way to turn this hint on using the SqlBulkCopy class?
Thanks in advance!
But -- the insert trigger on the table that SqlBulkCopy is sending data to is not running. If I insert with a regular INSERT query the trigger fires...but if I do the insert with SqlBulkCopy it does not.
I understand that one can normally add a 'hint' to SqlBulkCopy/Insert commands (FIRE_TRIGGERS) if writing the query out manually that will tell the SqlServer to run Insert triggers.
Is there a way to turn this hint on using the SqlBulkCopy class?
Thanks in advance!