To start I should mention that you can not search the actual data in your tables for text, but you can search your SQL Objects – Tables, Views, Stored Procedures, Constraints, Triggers and Functions for text.
Often you want to find all references to a particular piece of text which could be the name of a table or column or just something that you have in a stored procedure.
The free tool from Red-Gate software fits the bill well, supporting SQL 2005 and above (including the express editions of Management Studio – See below for notes on SQL Express 2005)
There is some advertising links to their other products included in the tool, but they are well worth a look at if you have never used them before – Red-Gate products are great.
Downloading the tool
To download the tool simply go to http://www.red-gate.com/products/sql_search/
Installation
After you install SQL Search you get a new toolbar with a single button
in SQL Server Management Studio. Clicking this button opens the UI which add a new tab to the current set of open tabs and will select the current database as the database to be searched (you can change this from the drop down).
Note: You can only search a single database at a time.
The search is activated by simply typing into the search field and your results are immediately displayed in a grid (no need to hit enter).
You can limit the search to different types of objects such as tables or views if needed.
Clicking on any of the search results will display the full text of the object where it was found with any matching text highlighted.
SQL 2005 Management Studio Express
This statement is included on the requirements page for SQL Search at http://www.red-gate.com/products/sql_search/requirements.htm
* To use SQL Search with SSMS 2005 Express Edition, extensibility.dll must be installed.
But then they give you no indication of what that means or where you get it from.
You can download the extensibility.dll by installing the following tool:
ftp://ftp.red-gate.com/development/sqlprompt/extensibilitymsm.msi