我有一个插入后触发器,当我在表中插入一条记录时它工作正常。
ALTER TRIGGER [dbo].[Insert_Into_Questions_Table]
ON [dbo].[Questionmaster]
After Insert
AS
BEGIN
Insert into Questions(Question_questionid,Question_questionname,Question_answer1,Question_answer2,Question_answer3,Question_answer4,Exam_examtypeid,User_Userid)
select Question_questionid,Question_questionname,Question_answer1,Question_answer2,Question_answer3,Question_answer4,Exam_examtypeid,User_Userid from Inserted
SET NOCOUNT ON;
-- Insert statements for trigger here
END
问题:
当我尝试使用 C# 代码中的 BulkCopy 插入多条记录时,触发器不起作用。