• The way I think of it is the following:

    - a stored procedure is a container for code that executes on request

    - a trigger is a container for code that executes on event

    - a view is a container for a query

    - a table is a container for data

    Yes we use code to create, alter, or maintain all those different types of container objects, but that doesn't mean that what those objects contain is also code.