• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inserting a BLOB into MSSQL Server 2000

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using the following code to "try" to insert a BLOB into MS SQL SERVER 2000.

My Prepared statement is: insert into table values(?)

then....


and my resume file( a MSWORD doc) is a byte array created by the following code:



I am trying to get the SQL Server to perform Full Text Searching. Is the
way I am placing the .doc file in the database correct, allowing SQL to correctly parse the files for indexing? My FTS does not return any results for any searches that I know would return a successful return value.

Any hints?

Zak Nixon
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure about this, but I think MSSQL Server has two different data types for large fields. One is BLOB (or something like that) which is binary data. Another one is Text or something like that. I'm not sure you can use free text search in the binary data types. Check it out. Try doing a search for MS SQL Server Data Types and check it out. If you are using the binary large object data type, change to the text data type. I think I have had this problem before, that was caused by something like this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic