I want to search for a string in the names of the columns present in a database.
I’m working on a maintenance project and some of the databases I deal with have more than 150 tables, so I'm looking for a quick way to do this.
What do you recommend?
|
I want to search for a string in the names of the columns present in a database. I’m working on a maintenance project and some of the databases I deal with have more than 150 tables, so I'm looking for a quick way to do this. What do you recommend? |
|||||
|
|
You can use following query to list all columns or search columns across tables in a database.
You can make use of information_schema views to list all objects in SQL Server 2005 or 2008 databases.
http://blog.sqlauthority.com/2008/08/06/sql-server-query-to-find-column-from-all-tables-of-database/ |
|||
|
|
|
There is also SQL Search - a free tool that integrates with SQL Server Management Studio.
|
|||||
|