1) Create a stored procedure within the application database.
2) Add a record with the following values to the EventDefinition table within the appication database.
a) Event = EndDeploy
b) Action = StoredProcedureName
c) ActionType = 1
d) ActionDescription = Stored Procedure description
e) SequenceNumber = if this the only record in the table then 1 otherwise the next number after the last sequence number already used.