This is a discussion on invalid object like view, function etc. within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi is there a way to know if object (view, function, etc) are invalid ? let say a have ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi is there a way to know if object (view, function, etc) are invalid ? let say a have a table t1 (field col1, col2) and a view v1 (field t1.col1, t1.col2) if I drop t1.col2, the view v1 is not working anymore. I want to know that information. In Oracle (8.1.7), i can query the all_objects, user_object table, where status = 'INVALID'. So i can recompile invalid objects (or correct it). In sql Server, the table sysobjects give me some status info, but they are not documented enough. Do you know if i can user one of those fields : status, userstat, sysstat ? Same question for function , procedure. TKS. |