Re: BLOB as primary key

From: Jacco Schalkwijk (NOSPAMjaccos_at_eurostop.co.uk)
Date: 04/26/04


Date: Mon, 26 Apr 2004 14:20:41 +0100

BLOBs in SQL Server are usually stored in columns with datatype image, and
you can't create a Primary Key on a column with datatype image. You can use
varbinary as the datatype for your blob column, but you will be limited to
900 bytes as the maximum length.

MySQL might allow it. Data integrity is not a major concern with the
designers of MySQL. Don't be surprised that if MySQL does allow you to
create a Primary Key on a BLOB, it might actually only create a Primary Key
on the first 100 bytes or so of the BLOB, without notifying you that it does
this.

-- 
Jacco Schalkwijk
SQL Server MVP
"Jacky Luk" <jl@knight.com> wrote in message
news:OgmyIMaKEHA.2456@TK2MSFTNGP12.phx.gbl...
> In SQL Server, Can you set a BLOB field as the primary key? Also in mySQL?
> Thanks
> Jack
>
>


Relevant Pages

  • Re: Store File in SQLServer via ADO
    ... "William Vaughn" wrote: ... > with a convoluted file structure. ... > BLOB to a local temp file which slows the process even further. ... Does one need a SQL Server license to get to it? ...
    (microsoft.public.data.ado)
  • Re: Blobs and SQL Server
    ... Older versions of SQL Server required the blob be loaded in chunks, ... There is a cpu and disk IO hit while inserting the blob. ... Director of Text Mining and Database Strategy ... If a large file is inserted, then it will require many small chunks. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: manipulating blobs in sqlplus
    ... SQL Server). ... There is also no size limit on the blob field ... site outside of the database and have a script load them in. ... 15 returning theBlob into l_blob; ...
    (comp.databases.oracle.server)
  • Re: Store File in SQLServer via ADO
    ... BLOB to an SQL INSERT parameter to add the file and then ... Does one need a SQL Server license to get to it? ... been a fan of BLOBs in the database for a decade. ... then why is the file system to underlie the next ...
    (microsoft.public.data.ado)
  • Re: Customized filter for content searching
    ... document blob. ... in a folder and the images are linked in the html file. ... >documents with SQL Server Full-Text Search in SQL ...
    (microsoft.public.sqlserver.fulltext)