The typical process for using a Transact-SQL cursor in a stored procedure or trigger is as follows:

Syntax

Example