Vous êtes sur la page 1sur 1

HOW TO: Get list of all tables where a particular column has been used in SQL Server

#SQLTIPS #SQLQUERY #SQLINTERVIEWQUESTIONS #SQL2005 #SQLSERVER Select Table_Name, Column_Name From Information_Schema.columns Where Column_Name = 'columnnametoearch' HOW to get dependencies of any table or view in SQL: sp_depends table/viewname This will list all the database objects stored procedures, views, triggers where that table has been used.