Select [name] as ObjectName, Type as ObjectType, Type_desc as ObjectType From Sys.Objects Where type_desc='view' and type_desc='user_table'
sys.dm_sql_referencing_entities
sp_depends
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)