Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - searching 50,000 records
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

searching 50,000 records

 Post Reply Post Reply
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Topic: searching 50,000 records
    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.
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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


Edited by Mart - 12 August 2007 at 1:08pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.