Search Capability Limited to 150 Maximum Results
marias
Posts: 3
The search capability limits my results to 150 maximum matches in cases where the search criteria should return more than 150 results (ie. searching for dbo). Is there any settings that can be updated to get around this limitation? Your help would be grealty appreciated!
I'm running SQL Server 2008 R2
Microsoft SQL Server Management Studio 10.50.1600.1
Redgate SQL Search ver. 1.0.0.321
I'm running SQL Server 2008 R2
Microsoft SQL Server Management Studio 10.50.1600.1
Redgate SQL Search ver. 1.0.0.321
Comments
To find any routines that contain the search term in the name of the routine or definition of the routine you could perform a query similar to:
SELECT * FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME LIKE '%something%' OR ROUTINE_DEFINITION LIKE '%something%'
And to find columns containing a term in the column name:
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME LIKE '%something%'
and again for tables containing a term in the name:
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE '%something%'
There are a number of other information schema views that you can query to search for terms in views, parameters, constraints etc.
I know that it doesn't highlight exactly where the search term is like SQL Search, this may help you achieve in part with what you need to do by compiling a list of objects that contain the search term that you are interested in investigating further.
I'd love to see this be configurable as I have a database with over 1000 sp's and I'm trying to identify a call to another database within the sp's and I hit the 150 limit.
http://wiseman-wiseguy.blogspot.com
SQL Server Architect\Developer
MCITP: Database Administration SQL Server 2008
David Atkinson
Red Gate Software
Product Manager
Redgate Software
Actually 150 is probably a good choice for display. Could paging be implemented? Even a a message saying 150 of N displayed would be better because there is nothing in the application that tells you that there are more than what is being displayed.
In my case I was searching for references to a second database because there are those who want to move those functions into the current database. Most procedures and functions have references to this database so I wanted to get a number and generate a list. I can do it using T-SQL, but SQL Search could have been perfect, if it returned all the rows (at least a count) and if I had a way to export to csv or excel. So I'd suggest keeping the display limit to 150 and adding a total found count and a way to export all results.
http://wiseman-wiseguy.blogspot.com
SQL Server Architect\Developer
MCITP: Database Administration SQL Server 2008
Cleveland, OH USA
This dll is opensource, so u can download sources and modify SQLiteCommand replacing in CommandText " limit 150" to " limit 500"
Unpack files to "x:\ProgramData\Red Gate\SQL Search\Active" and "x:\ProgramData\Red Gate\SQL Search\Source" overwriting existing System.Data.SQLite.dll
SQLSearch_SQLite_patched_for_limit_400.zip