بهترین راه حل استفاده از FULLTEXT Search در SQL هستش یک نمونه اش را اینجا میذارم :
Create Table eBooks(
BookID int not null identity(1,1) ,
BookExt Char(4) not null ,
BookContents varbinary(max))
Create FullText Catalog myCatalog as Default
Create Unique Index UI_Books on eBooks(BookID)
Create FullText Index on eBooks(BookContents Type Column BookExt) Key Index UI_Books
Insert eBooks(BookExt,BookContents) Select '.doc' ,* From OpenRowSet(Bulk 'C:\Test.doc',SINGLE_BLOB) as BookContents
Select * from eBooks
Select * from eBooks where Contains (BookContents ,'Sasan')
[HTML][/HTML]