Print Page | Close Window

searching 50,000 records

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24145
Printed Date: 28 March 2026 at 7:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: searching 50,000 records
Posted By: zMaestro
Subject: searching 50,000 records
Date Posted: 11 August 2007 at 10:04am
Hello,
this is my first post in the new design of WWF :)
 
I've an MsSQL database of 50,000 records, it is for a law book.
I don't have experience for working with such a big database, so do you have any advices for how do I make a text search inside this database, would the ntext field has any special settings to fasten the search through it?
 
thanks in advance.



Replies:
Posted By: MadDog
Date Posted: 12 August 2007 at 12:53am
SELECT tblTable.Field FROM tblTable WHERE Field Like '%search words %';


You can view this tutorial i wrote up a long time ago on how to search a database, http://www.iportalx.net/show_tutorial.asp?TutorialID=672 - http://www.iportalx.net/show_tutorial.asp?TutorialID=672


-------------
http://www.iportalx.net" rel="nofollow">


Posted By: zMaestro
Date Posted: 12 August 2007 at 10:39am
Is there any special setting in this field, database size it about 350 MB, is the tblTable.Field should has any extra setting to fasten the searching?


Posted By: Mart
Date Posted: 12 August 2007 at 1:08pm
Using only the LIKE keyword makes for a pretty limited search, it only allows for exact matches.

You may be better off enabling full-text indexing, that'll allow you to get better matches, and should be more optimised.

Here's an article that explains how to implement it http://www.developer.com/db/article.php/3446891 - http://www.developer.com/db/article.php/3446891



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net