Both stored procedure and trigger are executed on the same machine where the database is located. The main advantage is that the data needed for a stored procedure (or trigger) is not sent through the network. In this way you can increase the performance.
Triggers are thought to keep data integrity.
Best regards
Bogdan Brzozowski