|
-
Oct 18th, 2011, 01:33 AM
#1
Thread Starter
Junior Member
[RESOLVED] create trigger
Hi Everybody i want to create trigger in sql server 2008 database
i want to insert data into another table in same database after parent database inserted record
i am trying something like this
CREATE TRIGGER INS_LOGDATA
ON NGAC_AUTHLOG
AFTER
INSERT
(select Userid,Transactiontime from NGAC_AUTHLOG )
AS Insert into LOGDATA values (Userid,ActDate,ActTime) values (Userid,ActDate,ActTime)
Last edited by deshpandesn; Oct 18th, 2011 at 01:40 AM.
Reason: additional information
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|