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 |
|
jogin malathi
Posting Yak Master
117 Posts |
Posted - 2007-04-03 : 00:10:17
|
| ALTER TRIGGER Trigger1 ON countries FOR UPDATE AS begininsert into country1 values(:deleted.cid,:deleted.cname,getdate(),,system_user,@@servername, host_id(),host_name(),DB_NAME())--select * from country1/*insert into country1select * from deleted*/i want to store data into country1 table as old data with all informationendIF I WANT TO SAVE THE ABOVE TRIGGER ERROR OCCURSIAM USING SQL SERVER 2005HELP MEMalathi Rao |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-04-03 : 00:14:05
|
[code]ALTER TRIGGER Trigger1ON countriesFOR UPDATE ASbegininsert into country1select cid, cname, getdate(), system_user, @@servername, host_id(), host_name(), DB_NAME()from deletedend[/code] KH |
 |
|
|
jogin malathi
Posting Yak Master
117 Posts |
Posted - 2007-04-03 : 01:54:11
|
how can i capture the id of the particular employee loged in modulequote: Originally posted by khtan
ALTER TRIGGER Trigger1ON countriesFOR UPDATE ASbegininsert into country1select cid, cname, getdate(), system_user, @@servername, host_id(), host_name(), DB_NAME()from deletedend KH
Malathi Rao |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-04-03 : 01:55:21
|
| What is "ID"?ID in local system? UserID in corporate network?Peter LarssonHelsingborg, Sweden |
 |
|
|
|
|
|
|
|