For Searching a specific columns or fields name in the whole database.


If you want to search a specific column in the whole database in sql server then you can the following query:


select * from INFORMATION_SCHEMA.COLUMNS where COLUMN_NAME like   '%yourColumnName%'


in the place of yourColumnName between the Percent sign you have to write the column name which you want to search

Comments

Popular posts from this blog

Grouping Sets, With Rollup and With Cube example

Adding Page brake aganist group values

To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases