Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ThomasSE
Starting Member
1 Post |
Posted - 2011-09-26 : 18:15:06
|
| I have created a trigger for a particular table.While i insert a record the trigger is working perfectly but while i use SqlBulkCopy to upload records from excel to database the trigger is not working what should i do. this is my trigger ALTER TRIGGER [dbo].[CreateDummyforOthers] ON [dbo].[StudentPersonal]AFTER INSERTASDECLARE @StudentID as bigintSET @StudentID=( SELECT @@IDENTITY)INSERT INTO dbo.StudentAcademic (StudentID) Values(@StudentID)INSERT INTO dbo.StudentOldAcademic (StudentID) Values(@StudentID)Thanks. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|