SQL Server - Search for a column across all database tables -
i execute sql query find tables within database not have particular column?
e.g. list of tables not have column called 'branchid'.
thank attention.
information schema views contain metadata database. more information, go here
using these views can this...
select t.table_name information_schema.tables t not exists (select table_name information_schema.columns c c.table_name = t.table_name , c.column_name = 'branchid')
Comments
Post a Comment