Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Triggers in SQL Server

Status
Not open for further replies.

fixthebug2003

Programmer
Joined
Oct 20, 2003
Messages
294
Location
US
Does SQL Server has Row Level Triggers?
 
Define what you mean by "Row Level Triggers" to make sure everyone is in agreement as to the definition.

Thanks

J. Kusch
 
In Oracle you have Row level and Statement level Triggers.
Row Level: The trigger fires for Every row.
Statement Level: The trigger fires only once for any change in the table. Mostly used for Transactional processing.

After Reading a little on Triggers in SQL Server ..looks like SQL Server 2000 does not have Statement level Trigger..may be I am wrong

Thanks
Fixthebug2003
 
A trigger in sql server fires once for an sql statement - if the statement affects mor ethan one row these can be referenced in inserted and deleted and joined via the primaty key.

If you need to preform row by row operations then the primary key can be used for that too.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
>> A trigger in sql server fires once for an sql statement
Except for recursion.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top