cyberbiker
Programmer
I am struggling with the syntax for stored procedures and triggers.
Most of the books I have are pretty simplistic and I am wondering if anybody knows a good place for me to find sample code to study?
One that I am trying to write at this time would be something like:
CREATE TRIGGER [UpdateTable2] ON [Table1]
FOR Update
AS
at this point I want to do something like
update table2 set table2.assigned = 0 where table2.number = table1.number (before table1 update)
update table2 set table2.assigned = 1 where table2.number = table1.number (after table1 update).
What I really need is someplace to find some detailed information on the t-sql language.
Thanks
Terry (cyberbiker)
Most of the books I have are pretty simplistic and I am wondering if anybody knows a good place for me to find sample code to study?
One that I am trying to write at this time would be something like:
CREATE TRIGGER [UpdateTable2] ON [Table1]
FOR Update
AS
at this point I want to do something like
update table2 set table2.assigned = 0 where table2.number = table1.number (before table1 update)
update table2 set table2.assigned = 1 where table2.number = table1.number (after table1 update).
What I really need is someplace to find some detailed information on the t-sql language.
Thanks
Terry (cyberbiker)