Andrew,
I said basically the same thing in my previous post, after Vishal reported a
successful FT Indexing of his documents in SQL Server,, for the benefit of
others who read this newsgroup. Note, my below post was from today, Tuesday,
September 30, 2003 at 8:07 AM....
Hi Vishal,
Good news!
Using a varchar was going to be next recommendation as NULLability &/or if
you're storing ".doc" (note, the . dot within the quotes) in a char(4) file
extension datatype as the column's NULLability and what you store also
affect whether or not the MSSearch engine finds up the correct file type to
be FT Indexed correctly. Note, sp_help output is difficult to read within an
email (word wrapping, etc.), and that is why I asked for you to "Save the
above output as an .rpt or .txt file...". None the less, the outcome is more
important!
Regards,
John
[quoted text, click to view] "Andrew Cencini [MSFT]" <acencini@online.microsoft.com> wrote in message
news:#gE5Rc3hDHA.2164@TK2MSFTNGP09.phx.gbl...
> For all those reading along on the newsgroups, Vishal makes a great
point --
> this comes up from time to time.
>
> Your best bet is to use varchar(n) as your type column data type. For
> char/nchar(n), if the value you insert is shorter than n, it will be
padded
> with spaces (this is part of the ANSI SQL standard for char/nchar) -- this
> padding will mean that the filter for that file type will not be loaded
> because the search process does not trim trailing spaces (by design).
>
> So the best practice to observe here is to virtually always use varchar(n)
> for your FT type column data type unless you know that every extension you
> will be inserting is going to be the same length.
>
> Thanks,
> --andrew
>
> Andrew Cencini
> Program Manger
> Microsoft Corp. - SQL Server Engine
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "vishal mahajan" <vmahajan@noida.hcltech.com> wrote in message
> news:edFwstxhDHA.620@TK2MSFTNGP11.phx.gbl...
> >
> > Hi John
> >
> > I found the solution for the problem. I had tried by making the Extn
> > column length to Char(4), but it was not working.
> > Then I tried by changing the datatype of the column to VarChar(4) and
> > here it goes :) i got the results.
> >
> > Thanks a lot for your responses, and I will install the service pack as
> > mentioned by you.
> >
> > Regards
> > Vishal
> >
> >
> > *** Sent via Developersdex
http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!
>
>