Search Capability Limited to 150 Maximum Results

A free Management Studio add-in to search for SQL in your databases

Moderators: JonathanWatts, David Atkinson, Anu Deshpande, Paul Stephenson, Michelle Taylor, Mike Upton, Adam, justin.caldicott

Search Capability Limited to 150 Maximum Results

Postby marias » Tue Jul 05, 2011 10:13 pm

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! :D

I'm running SQL Server 2008 R2
Microsoft SQL Server Management Studio 10.50.1600.1
Redgate SQL Search ver. 1.0.0.321
marias
 
Posts: 2
Joined: Tue Jul 05, 2011 10:07 pm

Postby aolcot » Wed Jul 06, 2011 8:46 am

I don't think it is configurable. You break the searches down by type i.e. filter by tables, then by views etc. What are you trying to achieve as there may be another way to achieve what you need to do?
aolcot
 
Posts: 25
Joined: Tue Jun 28, 2011 3:13 pm

Postby marias » Wed Jul 06, 2011 10:15 am

I would like to know all of the occurrences that the search text appears in, but I'm not able to determine this since it's always limiting itself to 150 results max. I tried breaking the searches down by type, but it still limits itself to 150 results.
marias
 
Posts: 2
Joined: Tue Jul 05, 2011 10:07 pm

Postby aolcot » Wed Jul 06, 2011 10:29 am

Ok, as a workaround and unless anyone can update this thread with a way to configure SQL Search, I would probably look to querying the information schema views if you are unable to refine the search any further. For example:

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.
aolcot
 
Posts: 25
Joined: Tue Jun 28, 2011 3:13 pm

Postby unclebiguns » Thu Sep 08, 2011 7:50 pm

I just ran up against this limit as well and was going to start a thread about it.

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.
Jack Corbett
http://wiseman-wiseguy.blogspot.com
SQL Server DBA
MCITP: Database Administration SQL Server 2008
unclebiguns
 
Posts: 11
Joined: Tue Apr 13, 2010 4:53 pm

Postby David Atkinson » Fri Sep 09, 2011 2:29 pm

What would you say a sensible limit was? We'd rather avoid adding options if at all possible.

David Atkinson
Red Gate Software
David Atkinson
 
Posts: 1124
Joined: Mon Dec 05, 2005 4:54 pm
Location: Twitter: @dtabase

Re:

Postby unclebiguns » Fri Sep 09, 2011 2:44 pm

David Atkinson wrote:What would you say a sensible limit was? We'd rather avoid adding options if at all possible.

David Atkinson
Red Gate 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.
Jack Corbett
http://wiseman-wiseguy.blogspot.com
SQL Server DBA
MCITP: Database Administration SQL Server 2008
unclebiguns
 
Posts: 11
Joined: Tue Apr 13, 2010 4:53 pm

Search Capability Limited to 150 Maximum Results

Postby erwino » Fri Sep 09, 2011 2:58 pm

Is it possible to limit to 150 with the option to show all when there are more available? This would allow a quick search up to 150, indicating that there are more or you should narrow your search. If the search is correct you can then opt for all results.
semper in excretia sumus solum profundum variat
erwino
 
Posts: 2
Joined: Mon Feb 08, 2010 12:29 pm

A vote for a combination of the two

Postby meklembl » Thu Oct 20, 2011 2:56 pm

I do like the option of getting all the results after display the first 150 of N results found.
Larry M
Cleveland, OH USA
meklembl
 
Posts: 93
Joined: Fri Aug 24, 2007 3:08 pm
Location: Solon, OH, USA

So where does this stand?

Postby pyousefi » Tue Mar 06, 2012 6:11 pm

So will pagination of all results be implemented? If so, when will this be offered?
pyousefi
 
Posts: 7
Joined: Tue Mar 06, 2012 6:05 pm
Location: McLean, United States

Postby Brian Donahue » Tue May 08, 2012 9:58 am

Please submit your requests for changes to SQL Search to its' Uservoice site - it's far better than using the forums for this sort of thing. http://redgate.uservoice.com/forums/101 ... uggestions
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am

Postby yar229 » Wed May 16, 2012 2:48 pm

Workaround: there is System.Data.SQLite.dll in \"c:\\ProgramData\\Red Gate\\SQL Search\\Source\" and \"c:\\ProgramData\\Red Gate\\SQL Search\\Active\".
This dll is opensource, so u can download sources and modify SQLiteCommand replacing in CommandText \" limit 150\" to \" limit 500\" :)
yar229
 
Posts: 2
Joined: Wed Apr 25, 2012 1:21 pm

Postby yar229 » Wed May 16, 2012 6:31 pm

Well, here it is patched for max 400 results.
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
yar229
 
Posts: 2
Joined: Wed Apr 25, 2012 1:21 pm


Return to SQL Search 1

Who is online

Users browsing this forum: No registered users and 0 guests