Results 1 to 6 of 6

Thread: retrieving most recent records along with searching some string

  1. #1
    Join Date
    Sep 2006
    Posts
    3

    retrieving most recent records along with searching some string

    hello friends, please help me.

    i am using sql-server 7

    i have a table called Metadata

    columns are slno,title,creator,subject,entrydate ...

    slno is primary key.

    entrydate contains date and time .

    table contains more than 80,000 records.

    i want to retrieve most recent records (say within 90 days or 120 days).and

    i want to search some strings say 'english' in results of aboue query using

    contains ( like contains(*,'english') ) or freetext only.

    please help ....how to write queryyyyyyy

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Did you create full text index in the table yet? Ifso, try query like:

    select * from Metadata where contains(*,'english') and entrydate > dateadd(dd, -90, getdate())

  3. #3
    Join Date
    Sep 2006
    Posts
    3
    Except entrydate column ,all columns in table are full text indexed but entrydate column is not full text indexed.
    and even i tried the query whatever u have given but it is giving 0 records but records that contains word 'english' are their in table but still it is giving 0 resultssssssss.please help me

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Did you chech full index catalog properties? What do you find there?

  5. #5
    Join Date
    Sep 2006
    Posts
    3
    In full text catalog properties,it is showing that table metadata "full text indexing enabled"

  6. #6
    Join Date
    Sep 2002
    Posts
    5,938
    How about word counts and so?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •