search - Find text in files (C#) -
Our application allows you to save any file type in the MS SQL DB as Blob / Image. I now have to provide the facility to search text within the files, similar to the standard Windows "Search in file" search.
What is the best way to get it? I used a StreamReader to read all the text from the file and then used Reggae to make a match. It is not certain that this is the most effective method of searching files.
Thank you
You should look at the full text search facility of SQL Server.
Here are some good articles:
I think you will find that many large databases Trying to pull back the record and then they are quite unable to search for memory. This is an area where your RDBMS is better, and if properly configured, then your life can be very simple.
Comments
Post a Comment