Tuesday, March 6, 2012
A script to get properties of full text catalog?
My organization is having a problem with MS-SQL's sporadically stopping full-text catalog population on one of our databases. New content is added to that database constantly, so we have an incremental population schedule set up to update the index once an hour. This works fine for a while and then stops for no apparent reason; we don't notice it having stopped until someone comes along to tell us they can't find something.
We've been trying different things to fix it, but in the meanwhile, is there a way to expose the properties (particularly the Last Population Date) of a full-text catalog to an outside script, so that we could incorporate a check of the catalog status into our daily server health scripts? Or, alternatively, a way to have the database server send out an email when the last incremental update is more than an hour old? It's no good to have our users being the ones to tell us when the indexing has failed.
Thanks much.Hello,
Try
use DatabaseName
select FulltextCatalogProperty(N'CatalogName', N'PopulateCompletionAge')
Its in seconds since 12:00:00 A.M., January 1, 1990.
I'll get you more info after i walk downstairs and get some starbucks :)|||Oh, that's perfect. Thanks so much.
For the reference of future readers of this topic, that first param is actually the catalog name, not the database name. Full Microsoft documentation is here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_fa-fz_7x15.asp . It's amazing what you can find when you know what you're looking for... thanks again!|||Select dateadd(s,FulltextCatalogProperty(N'CatalogName', N'PopulateCompletionAge'),'1/1/1990')
Alot of times, I'll do a incremental right after the insert. That will only be helpful in certain situations.
Thanks for the note on the Catalog name. It looked fishy but I didnt look into it. I guess my catalog name is the same as my database name ;)
Thursday, February 9, 2012
a full-text search engine
Hi
I'm working on a digital Library project. Can anybody suggest a powerfulAsp.net full-text search engine Script or guide?
Thanks
Hi,
If you're using SQL Server as the database, I would suggest the Microsoft Full-Text Engine for SQL Server.
The Microsoft Full-Text Engine for SQL Server (MSFTESQL) service is a full-text indexing and search engine. The MSFTESQL engine is built on Microsoft Search (MSSearch) technology and is integrated into the Microsoft SQL Server 2005 Database Engine more tightly than ever.
Please check the following link for more information
http://msdn2.microsoft.com/en-us/library/ms142587.aspx
HTH. If this does not answer your question, please feel free to mark the post as Not Answered and reply. Thank you!
|||Thanks for your reply,
I use SQL Server 2005 and I don't think Microsoft Full-Text Engine is suitable for me because I don't want my search engine search the files. All of our books will scan with OCR components and the full text of books will extract into a "NTEXT" field of the bank. I want a search engine for searching the "NTEXT" field efficiently.
Meanwhile I use a shared hosting plan on internet and can't use Administrator role for database.
Can you suggest any solution?
Thank you very much