![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Have a table that has following fields (pkid, field1, field2, field3, field4). I need to create a trigger that will insert a row into another table with the pkid column that was updated. Any help will be appreciated. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
First, thanks for the response But keep getting invalid object name on the table |
#5
| |||
| |||
|
|
Please show your code. And which table has the invalid name? Etc? RLF "Chico Che" <jsisk24 (AT) yahoo (DOT) com> wrote in message news:Xns9A448ED62D4EAChicoche (AT) 216 (DOT) 196.97.131... First, thanks for the response But keep getting invalid object name on the table |
#6
| |||
| |||
|
|
First, thanks for the response But keep getting invalid object name on the table CREATE TRIGGER iolta_change on tbldata AFTER INSERT AS BEGIN INSERT INTO tblaudit SELECT pkid FROM inserted END |
#7
| |||
| |||
|
|
"Russell Fields" <russellfields (AT) nomail (DOT) com> wrote in news:##pzw30bIHA.5348 @TK2MSFTNGP03.phx.gbl: Please show your code. And which table has the invalid name? Etc? RLF "Chico Che" <jsisk24 (AT) yahoo (DOT) com> wrote in message news:Xns9A448ED62D4EAChicoche (AT) 216 (DOT) 196.97.131... First, thanks for the response But keep getting invalid object name on the table CREATE TRIGGER iolta_change on tbldata AFTER INSERT AS BEGIN INSERT INTO tblaudit SELECT pkid FROM inserted END |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
We have two tables Create Table tblData( pkid int not null, field1 varchar(55), field2 varchar(55), field3 varchar(55) field4 varchar(55)) Create Table tblAudit (recid int not null) A program is contantly updating or insert rows in table tblData. We want to create a trigger that will insert the pkid from tblData into tblAudit when a new row is inserted or a row is updated. I apologize, first time poster. Thanks |
#10
| |||
| |||
|
|
We have two tables Create Table tblData( pkid int not null, field1 varchar(55), field2 varchar(55), field3 varchar(55) field4 varchar(55)) Create Table tblAudit (recid int not null) A program is contantly updating or insert rows in table tblData. We want to create a trigger that will insert the pkid from tblData into tblAudit when a new row is inserted or a row is updated. I apologize, first time poster. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |