Mike,
Yep, this is somewhat document in SQL Server 2000 BOL title "Filtering
Supported File Types" - "...the file extension must be stored in a separate
column on the table. This type column can be of any character-based data
type and contains the document file extension, such as .doc for a Microsoft
Word document. If the type column is NULL, the document is assumed to be a
text file (.txt)."
Although, in this newsgroup, it's been often posted that the file extension
column must be defined as char(3), char(3) or sysname, however, recent
testing with a SQL Server 2000 with SP3 applied provides hints that an
un-documented fix was done for this as I was able to get this to work with a
varchar(100) column datatype.
Regards,
John
[quoted text, click to view] "<M>ike" <mikedotdinnisatabraxas-ukdotcom> wrote in message
news:#dsKPbdWEHA.1164@tk2msftngp13.phx.gbl...
> OK,
>
> I have resolved my problem!! It seems that the DocType field used to
> determine which filter to use needs to have the extension of the document
> type an nothing else in it. As I was experimenting with variants of 'doc'
i
> attempted to put '.doc' in and got a sql error saying that the entered
text
> was too long for the field. This hinted to me that the spaces after the
text
> 'doc' were also being included. So I set the length of the char DocType
> field to 3 and all the field entries to 'doc', repopulated and it worked.
>
> It seems that memoray allocation was a bit of a red herring.
>
> Moral of this story, only use the minimum length for fields that you can
get
> away with.
>
> Interestingly it now shows 17 as the Unique key count. Any idea on how it
> calculates this figure?
>
> Thanks for your interest,
>
> <M>ike
>
>