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 |
|
sharankruthi
Starting Member
22 Posts |
Posted - 2009-07-20 : 00:49:58
|
| I have a trigger for insert which calls a procedure.Is it possible to use inserted table inside that procedure? |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-07-20 : 00:59:03
|
no. you can't. KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
sharankruthi
Starting Member
22 Posts |
Posted - 2009-07-20 : 01:08:49
|
| oh ok. so the scope of inserted is only within triggers is it? |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-07-20 : 01:20:53
|
yes. KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
sharankruthi
Starting Member
22 Posts |
Posted - 2009-07-20 : 02:07:26
|
| Thank you |
 |
|
|
unique_rehan
Starting Member
2 Posts |
Posted - 2009-07-20 : 06:18:18
|
| can any one tell me that what is the syntax for the delete trigger for (before inserting new vlues in a tables columns delete all previous values) |
 |
|
|
blindman
Master Smack Fu Yak Hacker
2365 Posts |
Posted - 2009-07-20 : 11:33:32
|
quote: Originally posted by unique_rehan can any one tell me that what is the syntax for the delete trigger for (before inserting new vlues in a tables columns delete all previous values)
That would still be an "insert" trigger, not a delete trigger.________________________________________________If it is not practically useful, then it is practically useless.________________________________________________ |
 |
|
|
|
|
|