Comments
1 comment
-
Thanks for your post.
It sounds like there must have been some changes to the underlying tables which has caused the views to become invalid and therefore fail when they are refreshed.
You could try using the 'find invalid objects' feature of SQL Prompt 5 to help you find all these objects. At least you will be able to tell your SQL Team exactly which objects are broken.
I hope this helps.
Add comment
Please sign in to leave a comment.
sp_refreshview N'[userView].[myTable]'
Above statement works when run in SqlServer2008-R2 as userView but fails when run as sa with the following error:
Msg 208, Level 16, State 6, Procedure sp_refreshsqlmodule_internal, Line 75
Invalid object name 'myTable'.
Any thoughts besides reporting it to MS SqlServer team?