Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Full Text Search in SQL Server 2005 with varbinary(max)

Full Text Search in SQL Server 2005 with varbinary(max)

Scheduled Pinned Locked Moved Database
databasehelpsql-serversysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arindam Tewary
    wrote on last edited by
    #1

    Hi I have to upload PDF files in database. I am uploading PDFs as stream and inserting into a column of varbinary(max) type. A column also to store file type. So my database Table looks like docs(PDFStream,filetype). Here "PDFStream" is varbinary(max) "filetype" is varchar(10) I have the Full Text Index created on the table "docs". my problem is when I execute the following SELECT PDFStream FROM Docs WHERE FREETEXT (PDFStream, 'EQUIPMENT') Does not fetch any result. But I have uploaded the PDF file with a line '........EQUIPMENT SALE AGREEMENT ......' ( dots here are just indicates other texts ) Any idea where I am going wrong ??? Any help will be appreciated.

    Thanks, Arindam D Tewary

    D 1 Reply Last reply
    0
    • A Arindam Tewary

      Hi I have to upload PDF files in database. I am uploading PDFs as stream and inserting into a column of varbinary(max) type. A column also to store file type. So my database Table looks like docs(PDFStream,filetype). Here "PDFStream" is varbinary(max) "filetype" is varchar(10) I have the Full Text Index created on the table "docs". my problem is when I execute the following SELECT PDFStream FROM Docs WHERE FREETEXT (PDFStream, 'EQUIPMENT') Does not fetch any result. But I have uploaded the PDF file with a line '........EQUIPMENT SALE AGREEMENT ......' ( dots here are just indicates other texts ) Any idea where I am going wrong ??? Any help will be appreciated.

      Thanks, Arindam D Tewary

      D Offline
      D Offline
      DerekFL
      wrote on last edited by
      #2

      I would guess that WHERE FREETEXT (PDFStream, 'EQUIPMENT') does not work because of the encoding maybe. Does WHERE FREETEXT (CAST(PDFStream as nvarchar(max)), 'EQUIPMENT') work. //I have never used varbinary and freetext so this advice comes with no warranty.

      Dave Evans

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups