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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -