SQL Server Search ForumSpecifics on how to Search (and find) in SQL Server. This forum has the right expertise on how to do this in SQL Server, with deeper focus on SQL Server enhancements© 2009 Microsoft Corporation. All rights reserved.Thu, 26 Nov 2009 02:07:54 Z2f82d42a-4723-4f6c-b545-395bd9a7bf96http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/5febcac3-4236-4ce1-8dfa-24b986d56ff8http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/5febcac3-4236-4ce1-8dfa-24b986d56ff8Wes Clarkhttp://social.msdn.microsoft.com/Profile/en-US/?user=Wes%20ClarkPresence of ESCAPE option in a LIKE clause changes resultsRunning SQL Server 2008 SP1 on Windows 7 or Windows 2003 R2 SP2 32-bit OS.<br/> <br/> With Japanese_CI_AI as the collation, put two values into a varchar column called TESTCHAR of a table called  TESTTABLE:<br/> シヤウTest1 <br/> シャクTest2 <br/> <br/> Issue a query:<br/> select TESTCHAR from TESTTABLE where TESTCHAR like 'シヤ' ESCAPE '\'<br/> <br/> One row is returned.<br/> <br/> Issues a second query without the ESCAPE clause:<br/> select TESTCHAR from TESTTABLE where TESTCHAR like 'シヤ'<br/> <br/> Two rows are returned.<br/> <br/> One basic question is should the Japanese collation ignore the big/small Katakana character differences?<br/> <br/> The second question is why would the simple presence of the escape option being specified change the results?  I tried different escape characters, including '#', 'a' and a Japanese character, and in all cases only one row was returned.Fri, 13 Nov 2009 18:39:54 Z2009-11-26T02:07:54Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/cebe2e5a-e94d-427b-85d3-e6586c3e65e8http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/cebe2e5a-e94d-427b-85d3-e6586c3e65e8coldwiredhttp://social.msdn.microsoft.com/Profile/en-US/?user=coldwiredFull text indexing rank inconsistent with FREETEXTTABLEHi,<br/> <br/> I've encountered a problem with my newly setup FTI in MSSQL Express 2005.<br/> <br/> I run a rebuild on the catalog like so: ALTER FULLTEXT CATALOG productindexcatalog REBUILD<br/> <br/> I then run the following query against the table:<br/> <br/> SELECT KEY_TBL.[RANK], FT_TBL.ProductName, FT_TBL.ProductID, FT_TBL.Url, FT_TBL.ProductPriceIncVat<br/>                FROM ProductIndex AS FT_TBL<br/>                INNER JOIN<br/>                FREETEXTTABLE(ProductIndex, ProductName, 'Aficio SP C220N') AS KEY_TBL<br/>                ON FT_TBL.ProductID = KEY_TBL.[KEY]<br/> ORDER BY KEY_TBL.[RANK] DESC<br/> <br/> The result is 3 rows with ranks; 731, 365 and 365 respectively and as expected. If I then change the query to just be &quot;Aficio&quot; I get one result with a rank of 240 (as expected again). If I then run the first query again I get ranks 240, 0 and 0. The table hasn't changed in this time and I can't work out why this would be.<br/> <br/> Does anyone have any suggestions?<br/> <br/> Thanks,<br/> Colin.<br/>Sun, 22 Nov 2009 02:24:30 Z2009-11-25T14:23:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/44228c96-0492-44e1-b921-e91263d643aahttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/44228c96-0492-44e1-b921-e91263d643aapiotr312http://social.msdn.microsoft.com/Profile/en-US/?user=piotr312Full-text search within few tables<span style="font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;font-size:13px;color:#333333;line-height:16px">Hi, <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">I am trying to perform full-text search on tableset which can look like this:</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Person (Id, Firstname^, Lastname^, AddressId)</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Address(Id, Street^, City^)</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Columns with '^' are full-text indexed. Person.AddressId is FK to Address.Id.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">The goal is to get resultset of person IDs  for query like:  find(  &quot;Peter NYC&quot; or &quot;Chicago Kate&quot;) - Meaning: &quot;Find all Peters who live in NYC or Kates from Chicago&quot;.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">How add  to the followin query searching whithin Address table?</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;color:black;background-color:white;padding:0px;margin:0px;border:0px initial initial"> <pre style="font-weight:inherit;font-style:inherit;font-family:inherit;list-style-type:none;text-decoration:none;font-size:1.25em;padding:0px;margin:0px;border:0px none initial"> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:blue;padding:0px;margin:0px;border:0px initial initial">select</span> [Key], Rank  <span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:blue;padding:0px;margin:0px;border:0px initial initial">from</span> <span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:blue;padding:0px;margin:0px;border:0px initial initial">freetexttable</span>(Person,(Firstname,Lastname), <span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#a31515;padding:0px;margin:0px;border:0px initial initial">&quot;Peter NYC&quot;</span> ) </pre> </div> <br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">I know that I can create View with all this data in one object, but maybe there is better solution?</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Google and bing don't want to show me any useful results :/</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Thanks in advance for your time.</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">Cheers</div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial"><br/></div> <div style="font-weight:inherit;font-style:inherit;font-family:inherit;padding:0px;margin:0px;border:0px initial initial">*) topic moved from sql engine section</div> </span>Mon, 23 Nov 2009 11:29:20 Z2009-11-23T14:42:55Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/216589a6-2049-4d0a-9336-4f8c950058b4http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/216589a6-2049-4d0a-9336-4f8c950058b4DBAMThttp://social.msdn.microsoft.com/Profile/en-US/?user=DBAMTComparing versions of databasesI have two databases. One on server A and the other on server B. Version A has been modified and properties changed like adding a new field to a table or changing a datatype from nchar to nvarchar. Is there something that is already built into SQL server where I can compare versions A and B to see the difference?<hr class="sig">DBAThu, 19 Nov 2009 19:52:42 Z2009-11-22T22:59:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/5c762bd6-f82a-4804-91cf-1b1e65bfe9c2http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/5c762bd6-f82a-4804-91cf-1b1e65bfe9c2SwaaS Devhttp://social.msdn.microsoft.com/Profile/en-US/?user=SwaaS%20DevSQL Server: Full text index for varchar(max)Hi,<br/> I have varchar(max) type column in a table where I want to create fulltext index for this column to search better.  First  I tried creating index for this column, but it did allow me to do so.  So I try to create fulltext index.  Please tell me how to achieve this for faster search for this column<br/> ThanksWed, 18 Nov 2009 04:51:50 Z2009-11-23T10:01:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/41301597-4547-419d-b356-d12eda896e94http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/41301597-4547-419d-b356-d12eda896e94Ragesh_Sys_adminhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ragesh_Sys_adminHow to detect if full text indexing feature is installed in SQL Server 2008hi everyone,<br/>                    i installed sql server 2008. One of my developer wants full text indexing feature to be installed in the server. i think i installed all the features. i want to know the full text indexing is installed in the system and i want to know how to install the feature in the existing sql sever which is installed in the server machine(64-bit) and sql server 2008 (64-bit). consider me as beginner for SQL server 2008  Wed, 18 Nov 2009 11:57:16 Z2009-11-19T12:03:16Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/79c937d7-c84d-4b3e-93bd-65f46b51452ahttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/79c937d7-c84d-4b3e-93bd-65f46b51452aVijay Jadhavhttp://social.msdn.microsoft.com/Profile/en-US/?user=Vijay%20JadhavFull Text Search with LINQ in SQL Server 2008Hi Experts,<br/> <br/> Does anyone know about &quot;Full Text Search&quot; ? Any sample code or tutorials would be greatly appreciated.<br/> <br/> Currently, I am using LINQ with my application. Can I implement &quot;Full Text Search&quot; with LINQ ?<br/> <br/> Note : I am using SQL Server 2008.<br/> <br/> Thanks.  <br/><hr class="sig">&quot;Knowledge Shared Is Knowledge Gained&quot;Mon, 16 Nov 2009 07:03:05 Z2009-11-18T07:07:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/4e9e9704-68ba-4d2a-af62-91324476d1efhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/4e9e9704-68ba-4d2a-af62-91324476d1efJack_Ghttp://social.msdn.microsoft.com/Profile/en-US/?user=Jack_GFull-text search with wildcard won't work with stoplist<p>When executing the following full-text query using a wildcard prefix search, no records are returned when using the default system stoplist. When I use an empty stoplist, the wildcard prefix search returns the record I am looking for. <br/><br/>SELECT *<br/>FROM tblSQLFULLTEXT<br/>WHERE CONTAINS((sentence), N'&quot;A-57655*&quot;', LANGUAGE 1033)<br/><br/>-- returns 0 rows when using the default system stoplist<br/>-- returns &quot;The part number is A-57655 and the color is brown&quot; using an empty stoplist<br/><br/>Using an exact query returns the record when using the default system stoplist:<br/><br/>SELECT *<br/>FROM tblSQLFULLTEXT<br/>WHERE CONTAINS((sentence), N'A-57655', LANGUAGE 1033)<br/><br/>Could the problem be the dash? Sys.dm_fts_parser with the wildcard string returns the same results using either stoplist.<br/><br/><br/></p>Wed, 11 Nov 2009 01:27:41 Z2009-11-19T09:37:13Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/ec8fce13-7593-479d-b868-06f2f34113aehttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/ec8fce13-7593-479d-b868-06f2f34113aenonnohttp://social.msdn.microsoft.com/Profile/en-US/?user=nonnoUse Full-Text Search to find out similar termsLet's say there's a database table called ListedURLs, which has a column [url], containing ten thousands of listed URLs. We're studying how to develop a searching program that if an user search for http://iyp.com.hk, similar URLs in the ListedURLs table will be returned, and results are ordered by similarity. Can it be done by SQL Server 2000 Full-Text Search? How to do it?<br/>Mon, 16 Nov 2009 07:33:30 Z2009-11-20T01:34:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/fad3278c-8ac3-4b69-a988-bcb5da8b22e6http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/fad3278c-8ac3-4b69-a988-bcb5da8b22e6vinay_ahujahttp://social.msdn.microsoft.com/Profile/en-US/?user=vinay_ahujaUpdate database table in user Defined function<span style="font-family:Verdana,Arial,Helvetica;color:midnightblue;font-size:x-small"><span class=spnMessageText>i am using sql 2005 <br/> my requirement is, i want to use Update in user Defined function and that user defined function will be used in other Update query assigning value to a column.<br/> <br/> currently we are using scalar function but it is neither allowing update function in it nor couldcall any stored procedure that could on it part could update the database table.<br/> waht need to be done?</span> </span><hr class="sig">web developerWed, 11 Nov 2009 06:50:27 Z2009-11-19T09:37:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/f9663b5c-df31-45a8-bd87-132c09e733fbhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/f9663b5c-df31-45a8-bd87-132c09e733fbwagnerjphttp://social.msdn.microsoft.com/Profile/en-US/?user=wagnerjpFT Search exposed to user<p>I would like to be able to use a CONTAINS clause to do a search for words in a column. However I would like to let my users specify the search terms without having to put AND between their words. <br/><br/>I know that FREETEXT will accept the words without the AND but then they can't use wildcards and they will get a large number of near matches (which is not what I want).<br/><br/>Any sugestions?<br/><br/>Jacob</p>Mon, 09 Nov 2009 21:37:28 Z2009-11-16T10:06:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/27c50e7d-d26e-4a66-a2c1-dda98f2d6219http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/27c50e7d-d26e-4a66-a2c1-dda98f2d6219HarleySkaterhttp://social.msdn.microsoft.com/Profile/en-US/?user=HarleySkaterUsing a Stored Procedure with a contains statement and wildcards<div style="background-color:white;color:black"> <pre>&lt;br/&gt;(&lt;br/&gt;@NounSearch <span style="color:blue">nvarchar</span>(60) = <span style="color:#a31515">'&quot;&quot;'</span>, @DescriptionSearch <span style="color:blue">nvarchar</span>(60)= <span style="color:#a31515">'&quot;&quot;'</span>, ) <span style="color:blue">AS</span> <span style="color:blue">SET</span> <span style="color:blue">NOCOUNT</span> <span style="color:blue">ON</span>; <span style="color:blue">SELECT</span> <span style="color:blue">TOP</span> (1000) p.ps_pik, p.item_pik, p.mfr_ucc_num, p.item_num, p.i2_cat_num, p.mfr_cat_num, p.product_name, p.fulltech_description, p.mfr_description, p.invoice_description, p.comm_pik, p.ps_uom, p.ps_uom_qty, p.list, p.col3, p.resale, p.mfr_pik, p.leaf_class, p.pfms_description, p.xref_group, p.[2K_DESC], p.brand_name, p.upc, m.mfr_fullname, i_image.item_pik <span style="color:blue">AS</span> Expr1,(ib_image.image_basepath + <span style="color:#a31515">'/'</span> + i_image.image_subdir + <span style="color:#a31515">'/'</span> + i_image.image_filename )<span style="color:blue">AS</span> img_url, i_thumb.item_pik <span style="color:blue">as</span> Expr2, (ib_thumb.image_basepath + <span style="color:#a31515">'/'</span> + i_thumb.image_subdir + <span style="color:#a31515">'/'</span> + i_thumb.image_filename )<span style="color:blue">AS</span> thumb_url, i_pdf.item_pik <span style="color:blue">AS</span> Expr3,(ib_pdf.image_basepath + <span style="color:#a31515">'/'</span> + i_pdf.image_subdir + <span style="color:#a31515">'/'</span> + i_pdf.image_filename )<span style="color:blue">AS</span> pdf_url <span style="color:blue">FROM</span> pricesvc <span style="color:blue">AS</span> p <span style="color:blue">LEFT</span> <span style="color:blue">OUTER</span> <span style="color:blue">JOIN</span> mfr <span style="color:blue">AS</span> m <span style="color:blue">ON</span> m.mfr_pik = p.mfr_pik <span style="color:blue">LEFT</span> <span style="color:blue">OUTER</span> <span style="color:blue">JOIN</span> <span style="color:blue">image</span> <span style="color:blue">AS</span> i_image <span style="color:blue">ON</span> i_image.item_pik = p.item_pik <span style="color:blue">AND</span> i_image.image_basepath_pik =1020 <span style="color:blue">LEFT</span> <span style="color:blue">OUTER</span> <span style="color:blue">JOIN</span> image_basepath <span style="color:blue">AS</span> ib_image <span style="color:blue">ON</span> ib_image.image_basepath_pik = i_image.image_basepath_pik <span style="color:blue">LEFT</span> <span style="color:blue">OUTER</span> <span style="color:blue">JOIN</span> <span style="color:blue">image</span> <span style="color:blue">AS</span> i_thumb <span style="color:blue">ON</span> i_thumb.item_pik = p.item_pik <span style="color:blue">AND</span> i_thumb.image_basepath_pik =1040 <span style="color:blue">LEFT</span> <span style="color:blue">OUTER</span> <span style="color:blue">JOIN</span> image_basepath <span style="color:blue">AS</span> ib_thumb <span style="color:blue">ON</span> ib_thumb.image_basepath_pik = i_thumb.image_basepath_pik <span style="color:blue">LEFT</span> <span style="color:blue">OUTER</span> <span style="color:blue">JOIN</span> <span style="color:blue">image</span> <span style="color:blue">AS</span> i_pdf <span style="color:blue">ON</span> i_pdf.item_pik = p.item_pik <span style="color:blue">AND</span> i_pdf.image_basepath_pik =1021 <span style="color:blue">LEFT</span> <span style="color:blue">OUTER</span> <span style="color:blue">JOIN</span> image_basepath <span style="color:blue">AS</span> ib_pdf <span style="color:blue">ON</span> ib_pdf.image_basepath_pik = i_pdf.image_basepath_pik <span style="color:blue">WHERE</span> (<span style="color:blue">CONTAINS</span> (p.product_name, @NounSearch) <span style="color:blue">AND</span> <span style="color:blue">CONTAINS</span> (p.*, @DescriptionSearch)) </pre> </div> an example of what I am passing into the stored procedure is<br/>@NounSearch = &quot;Valve&quot;<br/>@DescriptionSearch = &quot;1/2&quot; AND &quot;Inch&quot;<br/><br/>That works PERFECT!  Now for the problem.  If I want to pass a null value through one of these parameters, I don't get back any results.  What is the best way to pass in a null value as a wildcard? or the other way around what is the way of passing a wildcard in instead of a null value.<br/>IE.<br/><br/>@NounSearch = &quot;NULL&quot;<br/>@DescriptionSearch = &quot;1/2&quot; AND &quot;Inch&quot;<br/><br/>OR<br/><br/>@NounSearch = &quot;**%%&quot;  &lt;-- wildcards haha<br/>@DescriptionSearch = &quot;1/2&quot; AND &quot;Inch&quot;<br/> <hr class=sig> HarleyTue, 03 Nov 2009 17:24:56 Z2009-11-07T23:17:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/e86b47d3-65d5-4bbc-83f1-17d371bb57c1http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/e86b47d3-65d5-4bbc-83f1-17d371bb57c1PositiveAlexhttp://social.msdn.microsoft.com/Profile/en-US/?user=PositiveAlexHavin troubles with freetext (didn't get an answer searchin overhere)Hi i have a simple question...<br/><br/>What i need to fix to use freetext when i using cyrrilic lang database ?! <br/>(but all my tables contains only english words)<br/><br/>1. I made fts catalog with english language<br/>2. I made fts index in my table ...<br/>3. I wrote the query which contains : select * from dbo.table where freetext (*, 'X')<br/>4. runned the query an i didnt get any rows but all my rows contains the word Xilinx in the second column...<br/><br/>Im using russian localised sql server ...<br/><br/>think i got a problem with some local settings but every time i change something in my database and table (i even add table with russian words only with freetext index ) it still doesnt work<br/><br/>thank you for your help with it !Thu, 05 Nov 2009 13:38:38 Z2009-11-13T09:20:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/b327b3a8-f7ae-47d4-a13a-4d191ccf75b9http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/b327b3a8-f7ae-47d4-a13a-4d191ccf75b9Hendrik Hansenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Hendrik%20HansenFulltext auto tracking not working<p>I have a problem getting auto tracking to work on a specific server. My database structure looks like this:<span style="font-size:x-small"> </span> <p> </p> <p> </p> </p> <div style="color:black;background-color:white"> <pre><span style="color:blue">CREATE</span> <span style="color:blue">TABLE</span> [dbo].[Article]( [ArticleId] [int] <span style="color:blue">IDENTITY</span>(1,1) <span style="color:blue">NOT</span> <span style="color:blue">NULL</span>, [Text] [nvarchar](<span style="color:magenta">max</span>) <span style="color:blue">NOT</span> <span style="color:blue">NULL</span>, <span style="color:blue">CONSTRAINT</span> [PK_Article] <span style="color:blue">PRIMARY</span> <span style="color:blue">KEY</span> <span style="color:blue">CLUSTERED</span> ( [ArticleId] <span style="color:blue">ASC</span> ) <span style="color:blue">WITH</span> (IGNORE_DUP_KEY = <span style="color:blue">OFF</span>) <span style="color:blue">ON</span> [PRIMARY] ) <span style="color:blue">ON</span> [PRIMARY] GO <span style="color:blue">CREATE</span> FULLTEXT <span style="color:blue">INDEX</span> <span style="color:blue">ON</span> [dbo].[Article] ( [Text] <span style="color:blue">LANGUAGE</span> [English] ) <span style="color:blue">KEY</span> <span style="color:blue">INDEX</span> [PK_Article] <span style="color:blue">ON</span> [MyCatalog] <span style="color:blue">WITH</span> CHANGE_TRACKING <span style="color:blue">AUTO</span> GO </pre> </div> <br/>When I run the following code:<br/><br/> <div style="color:black;background-color:white"> <pre><span style="color:blue">INSERT</span> <span style="color:blue">INTO</span> [Article]([Text]) <span style="color:blue">VALUES</span>(<span style="color:#a31515">'Test text1'</span>) <span style="color:blue">SELECT</span> [ArticleId], [Text] <span style="color:blue">FROM</span> [dbo].[Article] <span style="color:blue">WHERE</span> <span style="color:blue">CONTAINS</span>([Text], <span style="color:#a31515">'&quot;text1&quot;'</span>) </pre> </div> <br/>...I would expect to find the row I just inserted. And again if I run the code:<br/> <div style="color:black;background-color:white"> <pre><span style="color:blue">UPDATE</span> [Article] <span style="color:blue">SET</span> [Text]=<span style="color:#a31515">'Test text2'</span> <span style="color:blue">SELECT</span> [ArticleId], [Text] <span style="color:blue">FROM</span> [dbo].[Article] <span style="color:blue">WHERE</span> <span style="color:blue">CONTAINS</span>([Text], <span style="color:#a31515">'&quot;text2&quot;'</span>) </pre> </div> <p><br/>...I would expect to find the same row. This all works fine on my development machine, but not on a another specific server. Even a full population of the catalog doesn't help i the second case, I have to rebuild the catalog and then do a full population to find the expected row.</p> <p>Any ideas on how to troubleshoot this is very much appreciated.</p> <p>Best regards</p> <span style="font-size:x-small"> <p>Hendrik W. Hansen</p> </span>Mon, 02 Nov 2009 09:26:19 Z2009-11-09T10:11:27Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/d762bd10-4269-49eb-80ce-75d6952d2832http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/d762bd10-4269-49eb-80ce-75d6952d2832MedBillerhttp://social.msdn.microsoft.com/Profile/en-US/?user=MedBillerSQLEXPRESS 2009 FULL TEXT SEARCH<p>The first 1 or 2 times that I try to do a full text search (using CONTAINS(...)), I get the following error:</p> <p>An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll</p> <p>Additional information: Word breaking timed out for the full-text query string. This can happen if the wordbreaker took a long time to process the full-text query string, or if a large number of queries are running on the server. Try running the query again under a lighter load.</p> <p>After that it starts working ok. I'm working from within Visual Studio 2008 and using SQLEXPRESS 2009 with advanced services.</p><hr class="sig">JLRosadoThu, 15 Oct 2009 18:46:14 Z2009-10-30T13:58:28Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/39e9b70a-cd0a-4188-82c9-0d267c6c0f6bhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/39e9b70a-cd0a-4188-82c9-0d267c6c0f6bKel Regorhttp://social.msdn.microsoft.com/Profile/en-US/?user=Kel%20RegorSearching based on wildcard characterHi, I would like to search a text based on a series of wildcard characters. For instance, if the user inputs the below search sequence, they should get the following outcome:<br/><br/>Input: K*n<br/>Output: Ken<br/><br/>Input: *e*<br/>Output: Ken, Gerald <br/><br/>I understand that by using full-text search's &quot;contain&quot; keyword, we can utilize the wildcard (*) character but the * has to be placed behind the search keyword. Therefore, I was wondering if the above is achievable. Thanks in advance.Fri, 30 Oct 2009 02:54:09 Z2009-10-30T12:42:44Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/95922ae3-91ad-4524-b1be-6e987656edeehttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/95922ae3-91ad-4524-b1be-6e987656edeejamiroquaihttp://social.msdn.microsoft.com/Profile/en-US/?user=jamiroquaiSQL Server 2008 freetexttable on phrase wordsI read the related topics to my question but none of them would provide any results even though my issue is similar with the ones described.<br/><br/><a href="http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/a20ddb82-c3e7-4e1f-91b9-f865f9d2a6c5/">http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/a20ddb82-c3e7-4e1f-91b9-f865f9d2a6c5/</a><br/><a href="http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/42409ada-9535-4920-aebf-6e583df689e8">http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/42409ada-9535-4920-aebf-6e583df689e8</a><br/><br/> <div>In sql 2005 when I search for <span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;</span>traffic room meeting<span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;</span> (<span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:red">double quotation</span>) will return nothing.</div> <div>In sql 2008 searching for the same <span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;</span>traffic room meeting<span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;</span> will return 177 rows that do not contain the search phrase as is at all, even more than that, some of the results do not contain any word as typed but just words like &quot;meet&quot;.<br/>Even more puzzling, if I search for <span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;</span>traffic room<span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;</span> I will get 150 rows, less than the more complicated phrase <span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;</span>traffic room meeting<span style="font-family:Verdana, sans-serif;color:#ff0000">&quot;<span style="color:#000000;font-family:Verdana, Arial, Helvetica, sans-serif">. For sure it looks like somehow even though I want to search the phrase enclosed under double quotation, SQL Server 2008 is doing a search like: traffic or room or meeting </span></span></div> <div><br/></div> <div>Is this a bug or do I miss some settings ? I know about the new changes that were implemented in 2008, specifically at this link but even so, the behavior is not consistent with the specification:<br/><a href="http://technet.microsoft.com/en-us/library/ms143709.aspx">http://technet.microsoft.com/en-us/library/ms143709.aspx</a></div> <div><br/> <table class=MsoNormalTable style="width:588.75pt;margin-left:3.75pt;border-collapse:collapse;border:none" border=1 cellspacing=0 cellpadding=0 width=785> <tbody> <tr style=""> <td style="border:solid #CCCCCC 1.0pt;border-bottom:solid #C8CDDE 1.0pt;background:#CCCCCC;padding:3.75pt 3.75pt 3.75pt 3.75pt" valign=bottom> <p class=MsoNormal style="margin-top:3.75pt;margin-right:0cm;margin-bottom:3.75pt;margin-left:0cm"><strong><span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:#000066">Feature</span></strong></p> </td> <td style="border-top:solid #CCCCCC 1.0pt;border-left:none;border-bottom:solid #C8CDDE 1.0pt;border-right:solid #CCCCCC 1.0pt;background:#CCCCCC;padding:3.75pt 3.75pt 3.75pt 3.75pt" valign=bottom> <p class=MsoNormal style="margin-top:3.75pt;margin-right:0cm;margin-bottom:3.75pt;margin-left:0cm"><strong><span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:#000066">Scenario</span></strong></p> </td> <td style="border-top:solid #CCCCCC 1.0pt;border-left:none;border-bottom:solid #C8CDDE 1.0pt;border-right:solid #CCCCCC 1.0pt;background:#CCCCCC;padding:3.75pt 3.75pt 3.75pt 3.75pt" valign=bottom> <p class=MsoNormal style="margin-top:3.75pt;margin-right:0cm;margin-bottom:3.75pt;margin-left:0cm"><strong><span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:#000066">SQL Server 2005</span></strong></p> </td> <td style="border-top:solid #CCCCCC 1.0pt;border-left:none;border-bottom:solid #C8CDDE 1.0pt;border-right:solid #CCCCCC 1.0pt;background:#CCCCCC;padding:3.75pt 3.75pt 3.75pt 3.75pt" valign=bottom> <p class=MsoNormal style="margin-top:3.75pt;margin-right:0cm;margin-bottom:3.75pt;margin-left:0cm"><strong><span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:#000066">SQL Server 2008</span></strong></p> </td> </tr> <tr style=""> <td style="border-top:none;border-left:solid #CCCCCC 1.0pt;border-bottom:solid #CCCCCC 1.0pt;border-right:solid #D5D5D3 1.0pt;background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt;background-image:initial;background-repeat:initial;background-attachment:initial;overflow-x:auto;overflow-y:auto" valign=top> <p style="margin-top:0cm;margin-right:.75pt;margin-bottom:.0001pt;margin-left:.75pt"><span style="font-size:8.5pt;font-family:'Verdana','sans-serif'"><a href="http://technet.microsoft.com/en-us/library/ms176078.aspx"><span style="color:#0033cc">FREETEXT</span></a><span> </span>or FREETEXTTABLE</span></p> </td> <td style="border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;border-right:solid #D5D5D3 1.0pt;background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt;background-image:initial;background-repeat:initial;background-attachment:initial;overflow-x:auto;overflow-y:auto" valign=top> <p style="margin-top:0cm;margin-right:.75pt;margin-bottom:.0001pt;margin-left:.75pt"><span style="font-size:8.5pt;font-family:'Verdana','sans-serif'">Searching for a exact phrase.</span></p> </td> <td style="border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;border-right:solid #D5D5D3 1.0pt;background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt;background-image:initial;background-repeat:initial;background-attachment:initial;overflow-x:auto;overflow-y:auto" valign=top> <p style="margin-top:0cm;margin-right:.75pt;margin-bottom:.0001pt;margin-left:.75pt"><span style="font-size:8.5pt;font-family:'Verdana','sans-serif'">If the search string (<em><span style="font-family:'Verdana','sans-serif'">freetext_string</span></em>) is enclosed within double quotation marks, stemming and thesaurus matches are not performed, and the string returns only exact matches as if it were a phrase search. For example, specifying &quot;fast ships&quot; in a FREETEXT predicate would return only rows that contained &quot;fast ships&quot;. The phase &quot;ship your package fast&quot; would not be returned.</span></p> </td> <td style="border-top:none;border-left:none;border-bottom:solid #CCCCCC 1.0pt;border-right:solid #D5D5D3 1.0pt;background:white;padding:3.75pt 3.75pt 3.75pt 3.75pt;background-image:initial;background-repeat:initial;background-attachment:initial;overflow-x:auto;overflow-y:auto" valign=top> <p style="margin-top:0cm;margin-right:.75pt;margin-bottom:.0001pt;margin-left:.75pt"><span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:red">Phrase searches are no longer allowed by FREETEXT and FREETEXTTABLE, which perform stemming and thesaurus matches regardless of whether single or double quotation marks enclose the search string. For example, searching on &quot;fast ships&quot; would return both &quot;fast ships&quot; and &quot;ship your package fast&quot;.</span></p> </td> </tr> </tbody> </table> </div> <div><span style="font-family:Verdana, sans-serif;color:#ff0000"><br/></span></div>Wed, 28 Oct 2009 15:53:51 Z2009-11-06T09:15:17Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/d9123fd8-035a-44bc-9871-38e8d6b6fb51http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/d9123fd8-035a-44bc-9871-38e8d6b6fb51Gentleman35http://social.msdn.microsoft.com/Profile/en-US/?user=Gentleman35Contains with wildcard iqnores special characterHaving fts catalog with accent sensitive = true and language on column is set to swedish. A test table contains the following values:<br/><br/>bjornfot<br/>uk bjorn<br/>björnfot<br/>uk björn<br/><br/>then when i run this query:<br/><br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>select</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"> </span><span style="color:#808080;font-size:x-small"><span style="color:#808080;font-size:x-small">*</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">from</span></span><span style="font-size:x-small"> SearchWords </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">where</span></span><span style="font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">contains</span></span><span style="color:#808080;font-size:x-small"><span style="color:#808080;font-size:x-small">(*,</span></span><span style="color:#ff0000;font-size:x-small"><span style="color:#ff0000;font-size:x-small">N'&quot;*björn*&quot;'</span></span><span style="color:#808080;font-size:x-small"><span style="color:#808080;font-size:x-small">)<br/><br/>results:<br/>uk björn<br/><br/><strong>which should be:</strong><br/>björnfot<br/>uk björn<br/><br/><strong>then when running:<br/></strong><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>select</p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="color:#000000;font-size:x-small"> </span><span style="color:#808080;font-size:x-small"><span style="color:#808080;font-size:x-small">*</span></span><span style="color:#000000;font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">from</span></span><span style="color:#000000;font-size:x-small"> SearchWords </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">where</span></span><span style="color:#000000;font-size:x-small"> </span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">contains</span></span><span style="color:#808080;font-size:x-small"><span style="color:#808080;font-size:x-small">(*,</span></span><span style="color:#ff0000;font-size:x-small"><span style="color:#ff0000;font-size:x-small">N'&quot;*bjorn*&quot;'</span></span><span style="color:#808080;font-size:x-small"><span style="color:#808080;font-size:x-small">)<font size=2 color="#808080"><font size=2 color="#808080"> <p> </p> </font></font></span><font size=2 color="#808080"> <p> </p> </font></span></p> <p><strong>results:<br/></strong>bjornfot<br/>uk bjorn<br/>björnfot<br/>uk björn<br/><br/><strong>which it should be:</strong><br/>bjornfot<br/>uk bjorn<br/><br/><br/>Any idrea of why the results are so?<br/><br/>thanks in advance!<br/></p> </span></span></p>Tue, 20 Oct 2009 13:13:08 Z2009-10-29T12:37:33Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/81362aa4-ebf2-42a9-8dea-c057cd5b9012http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/81362aa4-ebf2-42a9-8dea-c057cd5b9012malcwelchhttp://social.msdn.microsoft.com/Profile/en-US/?user=malcwelchsql server errorGetting this error when I turn on my PC - any advice ? <br/><br/>your sql server instulation is either corrupt or has been tampered with (could not open sqlevn70.rll) please uninstall then re-run setup to correct this problemSun, 25 Oct 2009 17:49:56 Z2009-11-02T09:38:27Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/c35b2582-abb0-4d16-8cf0-d101bd0d9473http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/c35b2582-abb0-4d16-8cf0-d101bd0d9473MarinaGrehttp://social.msdn.microsoft.com/Profile/en-US/?user=MarinaGreIFTS Master merge keep failingHi,<br />I'm using IFTS of sql server 2008.<br />I'm indexing html documents comperssed with Zip Ifilter (of IFilter Shop).<br />And I have several issues, I currently can't resolve. <br />Currently the catalog has about 500,000 documents, the popultaion takes sevral hours (between 5-10), when the fdhost at start (about first 300,000) documents is on 15-70% CPU usage and after that it's on 0%, and the remaining rebuold process takes a lot of time.<br />The second issue is that the ctalog is very defragmented <span style="color: #008000; font-size: x-small;"><span style="color: #008000; font-size: x-small;">sys</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="font-size: x-small;">fulltext_index_fragments returns about 250 fragments.<br />When I try to reorganize I receive the following error: <br />Msg 30031, Level 17, State 100, Line 1<br />A full-text master merge failed on full-text catalog 'ContentCatalog' in database 'NogaClass' with error 0x80FC755D.<br /><br />I tried to delete the full-text index and to rebuild it and then reorganize, but it didn't help.<br /><br />Can anyone please advice?<br /><br />P.S. The defragmentation causes a very slow search performance.</span>Tue, 06 Oct 2009 12:20:28 Z2009-10-22T05:48:12Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/891a68a4-c645-4919-97f7-45e5ab51fb07http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/891a68a4-c645-4919-97f7-45e5ab51fb07RonAckhttp://social.msdn.microsoft.com/Profile/en-US/?user=RonAckTips for improving FTS performance?I have a table with about 5 million records and am trying to do a simple full-text search on one of its columns.  The query looks something like this:<br/> <br/> <pre lang=x-sql>SELECT COUNT(*) FROM tDay15 WITH (NOLOCK) WHERE CONTAINS([Segment], '&quot;google&quot;')</pre> <br/> This is taking several seconds to complete and I'm wondering if anyone can give me any pointers on how I might improve that.  The table and catalog definitions are below:<br/> <br/> <pre lang=x-sql>CREATE FULLTEXT CATALOG [Day15Catalog]WITH ACCENT_SENSITIVITY = ON AUTHORIZATION [dbo] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tDay15]( [OpinionID] [bigint] NOT NULL, [Segment] [nvarchar](500) NULL, [CreatedDate] [datetime] NULL, CONSTRAINT [PK_tDay15] PRIMARY KEY CLUSTERED ( [OpinionID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO CREATE NONCLUSTERED INDEX [ixnc_OpinionID] ON [dbo].[tDay15] ( [OpinionID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO CREATE FULLTEXT INDEX ON [dbo].[tDay15]( [Segment] LANGUAGE [English]) KEY INDEX [PK_tDay15]ON ([Day15Catalog], FILEGROUP [PRIMARY]) WITH (CHANGE_TRACKING = AUTO, STOPLIST = SYSTEM) GO</pre>Mon, 19 Oct 2009 15:23:08 Z2009-10-19T19:01:14Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/329286dc-5bb9-4d18-96c8-681eb615b472http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/329286dc-5bb9-4d18-96c8-681eb615b472jdecuyperhttp://social.msdn.microsoft.com/Profile/en-US/?user=jdecuyperSpanish thesaurus file not loading on Sql Server 2008Hi! <div><br /></div> <div>I'm having some problems making full text index search work with a spanish thesaurus file.</div> <div><br /></div> <div>Details:</div> <div><br /></div> <div>- SQl Server Express 2008 with advanced services on a windows vista box.</div> <div><br /></div> <div>- sp_configure 'default full-text language' returns&nbsp;3082 which is the LCID for Spanish.</div> <div><br /></div> <div>- Thesaurus file is located at SQLServerInstallationFolder\MSSQL10.SQLEXPRESS\MSSQL\FTData\tspan.xml and looks like:</div> <div><br /></div> <div>- Database and full-text search where restarted engine after each change.</div> <div><br /></div> <div>- Thesaurus file is loaded this way:&nbsp;</div> <div> <div style="color:Black;background-color:White;"> <pre><span style="color:Blue;">EXEC</span> sys.sp_fulltext_load_thesaurus_file 3082; </pre> </div> </div> <div><br /></div> <div>- Thesaurus file is located at SQLServerInstallationFolder\MSSQL10.SQLEXPRESS\MSSQL\FTData\tspan.xml and looks like:</div> <div> <div style="color:Black;background-color:White;"> <pre>&lt;<span style="color:Blue;">XML</span> ID=<span style="color:#A31515;">"Microsoft Search Thesaurus"</span>&gt; &nbsp;&nbsp; &nbsp;&lt;thesaurus xmlns=<span style="color:#A31515;">"x-schema:tsSchema.xml"</span>&gt; &lt;diacritics_sensitive&gt;0&lt;/diacritics_sensitive&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;expansion&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sub&gt;Internet Explorer&lt;/sub&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sub&gt;IE&lt;/sub&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sub&gt;IE5&lt;/sub&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/expansion&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;replacement&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pat&gt;NT5&lt;/pat&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pat&gt;W2K&lt;/pat&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sub&gt;Windows 2000&lt;/sub&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/replacement&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;expansion&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sub&gt;run&lt;/sub&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sub&gt;jog&lt;/sub&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/expansion&gt; &nbsp;&nbsp; &nbsp;&lt;/thesaurus&gt; &lt;/<span style="color:Blue;">XML</span>&gt; </pre> </div> <div><br /></div> <div>- No error was found inside the log events</div> <div><br /></div> <div><br /></div> <div>Problem:</div> <div><br /></div> <div>The following query should return more than one row but only retrieves one:</div> <div>SELECT * FROM tBrower WHERE CONTAINS(description,'FORMSOF(Thesaurus,"IE5")')</div> <div><br /></div> <div>I looked for the spanish registry key under:&nbsp;HKLM\Software\Microsoft\Microsoft SQL Server\YourInstance\MSSearch\Language\span but was not able to find it.&nbsp;</div> <div>Maybe this is part of the problem.</div> <div><br /></div> <div>Thanks a lot!</div> </div> <div><br /></div> <div><br /></div> <div><br /></div> <div><br /></div> <div><br /></div>Tue, 13 Oct 2009 16:20:28 Z2009-10-16T21:17:37Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/683304ee-5e9e-4aa1-8d74-3e8d1e1c0d5ehttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/683304ee-5e9e-4aa1-8d74-3e8d1e1c0d5eDexeloperhttp://social.msdn.microsoft.com/Profile/en-US/?user=DexeloperFull-text using 'contains'<span class="spnMessageText"><span style="font-size: x-small; color: #191970;">Suppose I have a table, under full-text indexing, with column data containing values 'law','lawson','byelaw'. I do a select using CONTAINS '"*law*"'. The first two records are returned but not the one with 'byelaw'.<br />I suspect the leading '*' is ignored when using 'contains'. Is this by design? I find this hard to believe. <br />Any thoughts?</span><br /></span>Thu, 15 Oct 2009 23:07:03 Z2009-10-22T11:42:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/af45f745-ead5-46fb-a8dd-9980a971e3fahttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/af45f745-ead5-46fb-a8dd-9980a971e3faDmitry1983http://social.msdn.microsoft.com/Profile/en-US/?user=Dmitry1983Fuzzy search in databaseHi all!<br /> <br /> I have a task related to fuzzy searching in database. <br /> It is assumed to be an sql server database.<br /> The task is to have an ability to search in large database by approximate input strings.<br /> <br /> So, I have a couple of questions to start my research in that task.<br /> Is that the realizable task to implement fuzzy searching in database by myself? Or it can be too tricky?<br /> <br /> Or it is more reasonable to use some ready-to-use tools?<br /> <br /> <br /> Thanks!<br /> <br /> <br />Tue, 13 Oct 2009 13:59:41 Z2009-10-21T10:03:26Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/02db95f9-fd40-47ea-9ea9-98502ddf0bcehttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/02db95f9-fd40-47ea-9ea9-98502ddf0bceBulent COSKUNhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bulent%20COSKUN('/') forward slash causing trouble me in FullText SearchHello All,<br/><br/>I have a column with fulltext search and it contains 'S/Y' and 'M/Y' special abbreviations. <br/>When I try to use contains function it is not working. I did some researches and I try to remove my, m, s, y nose words from nose file, but problem still continue.<br/><br/>Any Idea how can I fix this issue?<br/><br/>PS: <br/>We are using SQL Server 2005 ( 9.0.3054 ) and Database running on win2k3. <br/>My Databases compatibility level is 90. <br/><br/><br/> <br/>Thu, 24 Sep 2009 18:59:32 Z2009-10-14T12:45:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/4fce954e-1997-4604-b96f-eae1acc38271http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/4fce954e-1997-4604-b96f-eae1acc38271Henk99999999http://social.msdn.microsoft.com/Profile/en-US/?user=Henk99999999Search phrase full textI use the following SQL: select specification from tblProduct where contains(specification, ' &quot;&lt;td&gt;Interfacetype&lt;/td&gt;&lt;td&gt;: &lt;/td&gt;&lt;td&gt;Hi-Speed USB&quot; ');<br /> <br /> This gives no result. Why does this not work???Tue, 13 Oct 2009 19:13:47 Z2009-10-21T10:06:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/61512968-f642-4858-a127-1f0558b2f788http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/61512968-f642-4858-a127-1f0558b2f788LooChttp://social.msdn.microsoft.com/Profile/en-US/?user=LooCfull-text search in two columns<span class=spnMessageText><span style="color:#191970;font-size:x-small">Hi<br/><br/>Question about full-text search, i have set up a table with two collumns, title and body<br/><br/>I have added a full-text to include both columns.<br/><br/>Now i want to search &quot;google&quot;-style in both columns but i cant get a hit from both at the same querie.<br/><br/>The table include a row: title = abc123, body = xyz987<br/><br/><br/>select title from table where contains((title,body), 'abc123 AND xyz987') is not working<br/><br/><br/>select title from table where contains((title,body), 'abc123) is working and<br/><br/>select title from table where contains((title,body), 'xyz987') is working<br/><br/>How can i get FT to return hits from two different columns?<br/><br/>The columns is nvarchar(MAX) and the server is 2005-sp2<br/><br/>/looc</span></span>Mon, 13 Jul 2009 07:47:23 Z2009-10-11T08:09:30Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/ab4cbe20-e5c9-49c6-bdba-00c72a47e08bhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/ab4cbe20-e5c9-49c6-bdba-00c72a47e08bAbercrombie07http://social.msdn.microsoft.com/Profile/en-US/?user=Abercrombie07FullText Not Searching On Phrase With Space CorrectlyI have a fulltext query that uses the containstable function. The phrase being searched is <strong><em>"over speed".</em></strong> I'm using a case insensitive sort. The result sets are coming back with the word <strong><em>speed</em></strong> but not the word <strong><em>over</em></strong>. The message return states: <pre lang="x-sql">The full-text search condition contained noise word(s).</pre> The phrase is not negiotable as I am specifically looking for the phrase <strong><em>"over speed"</em></strong>. Is <strong><em>over</em></strong> a noise word?<hr class="sig">DJ Baby Anne's Biggest Fan................Fri, 02 Oct 2009 19:51:33 Z2009-10-09T19:43:28Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/7b9dee6a-c064-4486-9664-42dab23d9c86http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/7b9dee6a-c064-4486-9664-42dab23d9c86Aftalhttp://social.msdn.microsoft.com/Profile/en-US/?user=AftalFull Text Search Result Ranking Across Multiple but Similar Tables<p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Hello, </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">I have a very large table that I had to break up into smaller tables and then full-text index it. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Example: </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Very Large Table:<span style="">  </span><span style="">                          </span>T1</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">T1 broken into smaller tables:<span style="">        </span>S1, S2, S3 &amp; S4 where the content of S1+S2+S3+S4=T1</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">S1-S4 tables all have the same columns i.e. Col1 and Col2. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">I have individually created a unique index on Col1 of S1 through S4 tables. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">I have individually full-text indexed Col2 of the S1 through S4 tables.</span><span style="font-size:small;font-family:Calibri"> </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri">To perform a full-text search query with ranking on the one of these tables I do the following:<span style="">  </span></span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">SELECT </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                </span>S1.*, </span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">    </span><span style="">            </span>KEY_TBL.RANK</span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">FROM </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                </span>S1 </span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                </span>INNER JOIN<span style="">  </span>CONTAINSTABLE</span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                                </span>(</span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                                                </span>S1, </span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                                                </span>*,</span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                                                </span>N'&quot;test&quot;',</span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                                                </span>500</span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                                </span>) AS KEY_TBL<span style="">  </span></span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">        </span>ON S1.Col1 = KEY_TBL.[KEY] </span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Order by </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri"><span style="">                </span><span style="">  </span>KEY_TBL.RANK;</span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri"> </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">How can I extend the above query to perform the same search on S1 through S4 and rank the result across all the 4 tables? </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">I do realize that the ranking function in SQL Server (presumably Okapi BM25) logically makes sense if its performed within the context of a single table (not a series of tables). But then, perhaps, there could be an algorithm that performs a relative re-ordering of ranking results across multiple tables (all other variables being the same). </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">If this cumulative ranking query is not possible, is there a different path I can take (short of reverting back to the T1 table and indexing it). </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Thanks, </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Tareen</span></p>Wed, 30 Sep 2009 19:45:00 Z2009-10-07T08:56:32Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/eeb2c042-ccf0-43ec-83ce-69e36593d57dhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/eeb2c042-ccf0-43ec-83ce-69e36593d57dWael Hawarihttp://social.msdn.microsoft.com/Profile/en-US/?user=Wael%20HawariToo many full-text columns or the full-text query is too complex to be executedHi,<br/> I am using sql server 2005, I am trying to do full text index<br/> I have a table Tbl_Product_with_Index<br/> <br/> CREATE TABLE [dbo].[Tbl_Product_With_Index](<br/>     [Product_Id] [int] NOT NULL,<br/>     [Product_Name] [nvarchar](max) NULL,<br/>     [Quantity] [int] NULL,<br/> <br/> )<br/> <br/> the data in my table look like<br/> <br/> <span style="text-decoration:underline">Product_Id</span>   <span style="text-decoration:underline">Product_Name</span>                     <span style="text-decoration:underline">Quantity</span> <br/> <br/> <table style="height:200px" border=0 width=304> <tbody> <tr> <td>1</td> <td>Pro_1</td> <td>1</td> </tr> <tr> <td>2</td> <td>Pro_2</td> <td>2</td> </tr> <tr> <td>3</td> <td>Pro_3</td> <td>3</td> </tr> <tr> <td>4</td> <td>Pro_4</td> <td>4</td> </tr> <tr> <td>5</td> <td>Pro_5</td> <td>5</td> </tr> <tr> <td>6</td> <td>Pro_6</td> <td>6</td> </tr> <tr> <td>7</td> <td>Pro_7</td> <td>7</td> </tr> <tr> <td>8</td> <td>Pro_8</td> <td>8</td> </tr> <tr> <td>9</td> <td>Pro_9</td> <td>9</td> </tr> </tbody> </table> ................<br/> <br/> i have 499999 rows in my table<br/> when i run the query<br/> <br/> SELECT product_name  ,product_Id from Tbl_Product_with_Index  <br/> where contains (product_name,'Pro_2')<br/> the result is  <br/> <br/> <strong>Pro_2    2</strong> <br/> <br/> only 1 row ....<br/> <br/> and when i run<br/> SELECT product_name  ,product_Id from Tbl_Product_with_Index  <br/> where  product_name like '%Pro_2%' <br/> <br/> i have <span style="text-decoration:underline"><strong>111111 rows</strong> </span> !!!!!!!!!!!!<br/> <br/> beside<br/> when  I run <br/> SELECT product_name  ,product_Id from Tbl_Product_with_Index  <br/> where contains (product_name,'&quot;Pro_*&quot;')<br/> <br/> I have =&gt; Too many full-text columns or the full-text query is too complex to be executed.<br/> <br/> Can any one please tell me why there is much difference between <strong>like </strong> and <strong>contains </strong> ?<br/> can <strong>contains </strong> do the same functionality as <strong>Like</strong> ?<br/> why i have this error, is there is a bug in sql server<br/> <br/> Hope to have an answer<br/> <br/>Sat, 01 Aug 2009 23:24:27 Z2009-09-26T17:11:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/f517a05c-cfbf-464d-a3f4-8ee9df7c8aaehttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/f517a05c-cfbf-464d-a3f4-8ee9df7c8aaePlanetPaolohttp://social.msdn.microsoft.com/Profile/en-US/?user=PlanetPaoloFulltext problem indexing xml data in SQL2008: 0x80004005 errors and cpu usage near 100%<p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Hi all,</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">I have been wrestling this for 2 days now and hope that someone can help.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">FYI - this has been tested on the following environments:</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">1.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Microsoft Windows Server 2003 R2 Standard Edition Service Pack 2</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86)</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (Intel X86)</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">2.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Windows 7 Enterprise</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64)</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">I have a table that stores data in a column of type xml, and a full-text index on it.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">The column contains multilingual data and leverages the xml:lang attribute on a per-record basis to define what word breaker to use.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Example:</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">&lt;Root xml:lang=&quot;en-AU&quot;&gt;This is my dog.&lt;/Root&gt;</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">(Note: the actual xml structure is more complex than the above.)</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">When I went to populate my table with real data, the log filled up with error messages (&quot;Error '0x80004005' occurred during full-text index population for table or indexed view [...]&quot;) and the cpu usage skyrocketed to 98%.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">After some digging I was able to identify the culprit - a handful of records having xml:lang=&quot;th-TH&quot; (Thai).</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">The text within the xml is actually English, but the same records previously existed on a SQL2005 server and were indexed without issues.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Also, please note that the xml structure is the same across all records, which are in all sorts of languages.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Now, having recently upgraded to SQL2008 I wondered if anything has changed for the Thai language, but found that it's among those languages that have NOT changed (</span><a href="http://msdn.microsoft.com/en-us/library/ms176076.aspx"><span style="color:blue"><span style="font-family:Calibri">http://msdn.microsoft.com/en-us/library/ms176076.aspx</span></span></a><span style="font-family:Calibri">).</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">So I played a bit with the xml data to narrow down the scope of the problem and found that 'sometimes' the Thai indexer fails - here is how to reproduce the problem <strong><span style="text-decoration:underline">in SQL2008</span></strong>:</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">1. Create a new table as follows and make [Id] the PK:</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">create table [TestTable] ([Id] int not null, [Xml] xml null)</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">2. Create a full-text index on the [Xml] column (don't specify any language; my sql default is English).</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">3. Add a new record as follows:</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">insert into [TestTable] values (1, '&lt;Root xml:lang=&quot;th-TH&quot;&gt;blah&lt;/Root&gt;')</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">-- The above statement does NOT cause any problem: a new row is added, indexed in a split second</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">-- and if you check the full-text index you'll see Docs Processed = 1 and Pending Changes = 0</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">-- In fact, if you query sys.fulltext_indexes you'll see that the index has a valid crawl_end_date</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">4. Now add another record as follows:</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">insert into [TestTable] values (2, '&lt;Root xml:lang=&quot;th-TH&quot;&gt;&lt;Title&gt;blah&lt;/Title&gt;&lt;/Root&gt;')</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">-- The above statement DOES cause the problem: a new row is added, but the indexing process (fdhost)</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">-- will eat up all your cpu and your log (SQLFTxxxxxyyyyy) will fill with 0x80004005 error messages</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">-- If you check the full-text index you'll see Fail Count = 1 and Pending Changes = 1</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">-- Also, if you query sys.fulltext_indexes you'll see that the crawl_end_date for your index is null</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> <br/></span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"><em>If you try the above <strong><span style="text-decoration:underline">in SQL2005</span> </strong>you won't have any problems at all.<br/></em><br/>I wonder if anyone has encountered the same problem and/or can shed some light into this issue.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">For now, I'm simply resorting to storing those documents without the xml:lang=&quot;th-TH&quot; attribute, but this obviously makes them unsearchable.</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Thanks in advance for any help,</span></span></p> <p class=MsoNormal style="line-height:normal;margin:0cm 0cm 0pt"><span style="color:black;font-size:10pt"><span style="font-family:Calibri">Paolo</span></span></p>Thu, 17 Sep 2009 00:28:35 Z2009-09-25T04:54:34Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/049f4995-4508-4c23-b124-6f2d53309e86http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/049f4995-4508-4c23-b124-6f2d53309e86DotNetBazigarhttp://social.msdn.microsoft.com/Profile/en-US/?user=DotNetBazigarArabic full text search<p>My SQL Server 2005 is not supporting Arabic language for Full Text Search. Please can anyone guide me how can I install Arabic language for Full Text Search.<br/><br/>Regards,<br/><br/>Faisal</p>Wed, 23 Sep 2009 10:35:16 Z2009-09-29T08:26:07Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/c68a48d5-9e34-40e6-9697-fef51b7de109http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/c68a48d5-9e34-40e6-9697-fef51b7de109solmakhttp://social.msdn.microsoft.com/Profile/en-US/?user=solmakFullText Index not Active in Table DesignerHi!<br/>I am using sql srvr 2008 exp edition management studio to create FullText index. After creating fulltext catalog, I tried to create fulltext index for a database table from the table designer menu. But the FullText Index is not active and it cannot be selected. What is the possible reason for this? Thanks for your assistance.<br/><br/>Solmek<br/>Tue, 22 Sep 2009 20:31:58 Z2009-09-30T10:00:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/2edb2bb0-af23-4113-ac82-74f99827849ehttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/2edb2bb0-af23-4113-ac82-74f99827849eGlenn Crilleyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Glenn%20CrilleySQL Sever Full Text Indexing replacement for WRITETEXT/UPDATETEXTWe hope to use Full Text Indexing in SQL Server as part of a major project.  We want to push many documents into SQL Server generating the full text index as we go.  We intend to use the index, but since we are storing the documents in other hardware we do not need to keep the document contents in SQL Server.  Using the current releases of SQL Server, we can push the documents into SQL Server and then use UPDATETEXT to set the column containing the doument to &quot;&quot;.  This removes the document contents (saving space in the DB) and retains the full text index.<br/> <br/> Since WriteText and UpdateText will not be supported in future releases,  what functions will be available to remove the contents of the full text column, but retain the full text index?Mon, 21 Sep 2009 20:42:17 Z2009-09-29T09:32:55Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/db56a3d0-f3f7-41d3-97ac-a472b62a1ee8http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/db56a3d0-f3f7-41d3-97ac-a472b62a1ee8Gentleman35http://social.msdn.microsoft.com/Profile/en-US/?user=Gentleman35Urgent! SQL 2008 thesaurus file special char åäöhi,<br/>i'm having problem with querying thesaurus file that contains the characters <br/>åäö. the tssve.xml file looks like this:<br/><br/>&lt;XML ID=&quot;Microsoft Search Thesaurus&quot;&gt;<br/>    &lt;thesaurus xmlns=&quot;x-schema:tsSchema.xml&quot;&gt;<br/>&lt;diacritics_sensitive&gt;0&lt;/diacritics_sensitive&gt;<br/>        &lt;expansion&gt;<br/>            &lt;sub&gt;car&lt;/sub&gt;<br/>            &lt;sub&gt;truck&lt;/sub&gt;<br/>            &lt;sub&gt;van&lt;/sub&gt;<br/>            &lt;sub&gt;automobile&lt;/sub&gt;<br/>            &lt;sub&gt;båt&lt;/sub&gt;<br/>        &lt;/expansion&gt;<br/>        &lt;expansion&gt;<br/>            &lt;sub&gt;Sjuk&lt;/sub&gt;<br/>            &lt;sub&gt;forsakringar&lt;/sub&gt;<br/>            &lt;sub&gt;Sjukförsäkringar&lt;/sub&gt;<br/>            &lt;sub&gt;Sjukvardsförsäkringar&lt;/sub&gt;<br/>        &lt;/expansion&gt;<br/>    &lt;/thesaurus&gt;<br/>&lt;/XML&gt;<br/><br/>When i query &quot;car&quot; it return results all rows containing the first 4 sub but <br/>not the last one. I used different soft of querys without working, here is <br/>one of my tests:<br/><br/><br/>declare @Word nvarchar(100)<br/>set @Word = N'car'<br/><br/>select ST.Id, ST.SearchWords, Key_TBL.RANK from SearchTest ST<br/>inner join freetexttable(SearchTest, *, @Word, language 1053) as KEY_TBL<br/>ON ST.Id = KEY_TBL.[KEY]<br/>ORDER By KEY_TBL.RANK DESC<br/>select * from SearchTest where freetext(*,@Word)<br/><br/>Is there a way to solve this problem? <br/><br/>Thanks in advance!Tue, 15 Sep 2009 11:47:49 Z2009-09-21T10:01:22Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/59cfa094-2e2a-494f-b8df-f82cb659d3eahttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/59cfa094-2e2a-494f-b8df-f82cb659d3eaIHaveLeftTheBuildinghttp://social.msdn.microsoft.com/Profile/en-US/?user=IHaveLeftTheBuildingThesaurus and getting the replacment wordHi<br/> <br/> I'm using the thesaurus for our full text search primarily to catch spelling mistakes, is there a way of capturing the substituted word value when I run a FormsOf(Thesaurus query?<br/> i.e. if my thesaurus contains (simplified version):<br/> &lt;replacement&gt;<br/>             &lt;pat&gt;kool&lt;/pat&gt;<br/>             &lt;pat&gt;cole&lt;/pat&gt;<br/>             &lt;sub&gt;cool&lt;/sub&gt;<br/>         &lt;/replacement&gt;<br/> <br/> And a user searches for kool, when I display the results for the sub cool, is there a way to pull out the sub so I can add a ' you searched for kool - did you mean cool?' <br/> <br/> ThanksFri, 18 Sep 2009 07:51:59 Z2009-09-24T09:20:18Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/030aa7b2-8cf3-42df-a2c7-fb28296ef0c2http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/030aa7b2-8cf3-42df-a2c7-fb28296ef0c2JimVashttp://social.msdn.microsoft.com/Profile/en-US/?user=JimVasfull text search extremely slowi have installed sql server 2005 in windows server 2003 .The full text search was working very fast (less than 1 sec) for about a month and after a server restarting it is working extremely slow(more than 8 min).<br/>I have deleted and recreated the full text index several times but still is very slow.<br/>Please provide me some help<br/><br/>thanks<br/>Wed, 26 Aug 2009 12:06:42 Z2009-09-24T15:32:19Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/6a349cbb-4821-4a78-8f9a-47981bf5b15chttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/6a349cbb-4821-4a78-8f9a-47981bf5b15cJSG080http://social.msdn.microsoft.com/Profile/en-US/?user=JSG080SQL Server 2008 - Registry keys for Licensed Third-Party Word Breakers<p><strong><span style="font-family:'Calibri','sans-serif'"><span style="font-size:small">It appears that this has NOT been tested under SQL Server 2008.</span></span></strong></p> <p style="margin-bottom:12pt"><span style="color:black;font-family:'Calibri','sans-serif'"><span style="font-size:small">Version: SQL Server 2008 Developer Edition RTM (MSDN download) + SP1<br/>OS: Windows XP Professional SP3<br/><br/>I'm starting to test SQL Server 2008. We use full-text, in multiple languages. So in SQL Server 2005 we loaded the 6 additional third-party word breakers according to the documentation and everything works fine.<br/><br/>In SQL Server 2008 the third-party word breakers has been reduced to three. So I'm trying to configure them according to the documentation.  However, there appears to be major documentation errors in SQL Server 2008.<br/><br/>Issues:<br/><br/>1. The document titled <em>&quot;How to: Load Licensed Third-Party Word Breakers&quot;</em> </span><a href="http://msdn.microsoft.com/en-us/library/ms345188.aspx"><span style="color:black"><span style="font-size:small">http://msdn.microsoft.com/en-us/library/ms345188.aspx</span></span></a><span style="font-size:small"> states that the &quot;FullTextDefaultPath&quot; value is located under <br/>&quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\<em>instance_ID</em>\<strong>MSSQLServer</strong>&quot; which is similar to SQL Server 2005.<br/><br/>However I found the entry under &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\<em>instance_ID</em>\<strong>Setup</strong>&quot;<br/><br/>2. The documentation instructs to add a Registry value specifying the path of the &quot;NoiseFile&quot; -- which no longer exist in SQL Server 2008. I checked the language entries for the standard (default) languages under &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\<em>instance_ID</em>\MSSearch\Language&quot; and none of those have a &quot;NoiseFile&quot; value.<br/><br/>3. Lastly, the values for the &quot;TsaurusFile&quot; are unqualified. I.e., they only specify the name of the file (without the path).  In SQL Server 2005 they were fully qualified.  So should they qualified?  I'm guessing no, based on the other entries.<br/><br/>So it would appear that the documentation is totally wrong. It certainly hasn't been tested (using the documentation).<br/><br/>Can anyone confirm the correct location of the keys and/or values and what should be entered into them.<br/><br/>BTW, I've already sent feedback on the BOL documentation.</span></span></p>Fri, 17 Apr 2009 13:27:40 Z2009-09-18T13:15:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/3c80e135-629d-4aa6-876f-02af29334362http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/3c80e135-629d-4aa6-876f-02af29334362maxseehttp://social.msdn.microsoft.com/Profile/en-US/?user=maxseeFTS problem with double quotes (")Hi,<br/><br/>I use CONTAINSTABLE query and my target table includes the word 'we&quot;as' (with double quotes [&quot;] in the middle of the word).<br/>I need to find the column containing data for precise matches to my word ('we&quot;as' ).<br/><br/>P.S. I work with Hebrew words and 'we&quot;as' is just example.<br/><br/>Thank in advance,<br/>MaximWed, 16 Sep 2009 08:45:38 Z2009-09-22T09:18:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/9824f71c-6ceb-47dd-b1e1-441879af3291http://social.msdn.microsoft.com/Forums/en-US/sqlsearch/thread/9824f71c-6ceb-47dd-b1e1-441879af3291sonimohitphttp://social.msdn.microsoft.com/Profile/en-US/?user=sonimohitpHow multipicate in sql server?hello,<br/> How to multiplication in sql server? <br/> <br/> <br/> its urgent please....<br/> <br/>Thu, 10 Sep 2009 09:34:20 Z2009-09-16T09:21:58Z