Kenneth Fisher diagnoses an error when calling sp_refreshview:
Msg 297, Level 16, State 3, Procedure sp_refreshsqlmodule_internal, Line 74 [Batch Start Line 2]
The user does not have permission to perform this action.
Click through for the solution to this problem.