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 |
venkateshnaik
Starting Member
2 Posts |
Posted - 2009-10-05 : 02:33:24
|
Hi all, I need to write a trigger on insert to copy iserted record to another table |
|
senthil_nagore
Master Smack Fu Yak Hacker
1007 Posts |
Posted - 2009-10-05 : 02:42:57
|
Put this into your after insert triggerinsert into new_table ( col1,col2,col3,... )select col1,col2,col3,... from InsertedSenthil.C------------------------------------------------------[Microsoft][ODBC SQL Server Driver]Operation canceledhttp://senthilnagore.blogspot.com/ |
|
|
Kabila
Starting Member
33 Posts |
Posted - 2009-10-05 : 02:45:09
|
Create Trigger Trigger_nameFor insert asBeginInsert into Tablename Select * from insertedEndTablename--Another table name |
|
|
|
|
|