solving sql server problems for millions of dbas and developers since 2006



SQL Server DBA Tips SQL Server Developer Tips SQL Server Business Intelligence Tips SQL Server Career Tips SQL Server Tip Categories SQL Server Tutorials SQL Server Webcasts SQL Server Whitepapers SQL Server Tools SQL Server Questions and Answers MSSQLTips Authors About MSSQLTips SQL Server User Groups MSSLQTips Giveaways MSSQLTips Advertising Options

MSSQLTips Facebook Page MSSQLTips LinkedIn Page MSSQLTips RSS Feed MSSQLTips Twitter Page MSSQLTips Google+ Page





SQL Product Highlight

Idera - SQL diagnostic manager

SQL diagnostic manager is a powerful performance monitoring and diagnostics solution that proactively alerts administrators to health, performance or availability problems within their SQL Server environment via a central console or mobile device. SQL diagnostic manager minimizes costly server downtime by providing agent-less, real-time monitoring and customizable alerting for fast diagnosis and remediation of SQL Server performance and availability problems. SQL diagnostic manager also provides a 'community' environment where, using Idera's IntelliFeed(TM) technology DBAs form a community to collaborate to quickly resolve problems, perform maintenance and capture best practices.

Learn more!




Microsoft Full Text Engine for SQL Server 2005

By: | Read Comments | Print

Edgewood Solutions is a technology company focused on Microsoft SQL Server and founder of MSSQLTips.com.

Related Tips: More

Problem
Finding information in large text or Binary Large Object (BLOB) columns is a daunting task. Using the LIKE keyword, although effective in most cases, will not always find the needed information. Full-text searching and indexing is a useful yet under-utilized feature of SQL Server that assists developers and users in finding the information. Versions prior to 2005 use a shared service to provide full-text functionality, making the process inefficient. The backup and restore process was also tedious and separate from the usual database backup process. In SQL Server 2005 Microsoft designed a new version of the engine, called Microsoft Full-Text Engine for SQL Server (MSFTESQL) to make full-text searching and indexing more efficient and easier to maintain.

Solution
Full-Text Search Concepts
In general, full-text searching technologies use a number of components to accomplish its mission. Word breaker is a component that determines where a word begins and ends. A stemmer determines the root form of a given word (strands and stranded =strand). In addition, they also take advantage of protocol handlers (i.e., HTTP and MAPI); a gatherer to manage the URL queue; and filters that actually extract textual information from the source. Full-text searching is used in products other than Microsoft SQL Server (Microsoft Exchange Server, Microsoft SharePoint technologies, and the Indexing Service for Microsoft Windows Server), to find the following:

  • Text data in text, ntext, char, nchar, varchar, and nvarchar columns
  • Text data stored in a column with data type image
  • Text data in Word documents, Web sites, Excel documents, text files, and PowerPoint presentations (these are native filters in SQL Server, although more can be added)

The MSSEARCH Service
In SQL Server 7.0 and 2000, Full-Text Searching and Indexing is handled by the MSSEARCH service. Only one instance of the MSSEARCH Service is installed and run on a server regardless of the number of instances of SQL Server installed. This means that the service is shared with all other components on the server that use the MSSearch service. It must run under the Local System context so that it can keep track of the MSSQLServer service account and handle modification of the full-text catalogs, since catalogs are stored outside of the database files. Once installed no modification can be made to the service, nor can changes be made to the MSSQLServer account except through the server properties of Enterprise Manager.

The MSFTESQL Service
The MSFTESQL Service (Microsoft Full-Text Engine for SQL Server) in SQL Server 2005 is a new and improved version based on the Microsoft Search Service. For each instance of SQL Server 2005 installed on the server there is an instance of the MSFTESQL service. This allows exclusive use of the service by a SQL Server instance. The pictures below show the running services in SQL Server Configuration Manager on different computers:

Services on computer running one SQL2000 and one SQL2005 instance Services on computer running two SQL2005 instances (Developer and Enterprise)

Unlike MSSEARCH, the MSFTESQL Service does not have to run under the Local System account context; it does, however, have to run under the same security account as the MSSQLServer service, since they work hand-in-hand and need to keep track of one another.

Next Steps

  • If you are looking for a new means to search your data, consider researching Full Text Search to incorporate more than just a literal search or using a LIKE clause.
  • Keep in mind that full text search products are also available for files such as Word, Excel, etc., so consider researching these technologies.
  • Review information on Microsoft Search Service and Microsoft Full-Text Engine for SQL Server
  • Download the sample AdventureWorks database and work with the full-text search concepts.
  • Tune in to MSSQLTIPS for more information on querying using Full-Text Search


Related Tips: More | Become a paid author


Last Update: 10/17/2006

Share: Share 






Comments and Feedback:


Post a Comment or Question

Keep it clean and stay on the subject or we may delete your comment.
Your email address is not published. Required fields are marked with an asterisk (*)

*Name   *Email   Notify for updates
Comments
*Enter Code refresh code


 
Sponsor Information
"SQL diagnostic manager delivers response in minutes, not hours!"

It takes just 5 minutes to connect your SQL Databases to source control. Got 5 minutes? Get started now.

Need SQL Server help and not sure where to turn? Reach out to the Edgewood consultants for a Health Check.

Free Trial: Get Proactive Insight with Spotlight® for SQL Server Enterprise.

Solving SQL Server problems for millions of DBAs and Devs since 2006. Join now.

Valuable SQL Server web casts on Performance Tuning, Development, Administration, SSIS and more...


Copyright (c) 2006-2012 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | about
authors | contribute | feedback | giveaways | user groups
Some names and products listed are the registered trademarks of their respective owners.


Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com