Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Problem in SQL server2005 Search..

Problem in SQL server2005 Search..

Scheduled Pinned Locked Moved Database
databasequestionhelp
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hvgyufg28fh38tyr78hf
    wrote on last edited by
    #1

    Hai All, I am doing following search in SQL Server2005, select * from table_1 where contains (text1,'"roll-over"') Results: 1 roll 2 notify us theday you roll check . 3 notify us the day you check roll-over. 4 notify us the day you check roll over. Could Some one tell me , is this results are right for this search?, i feel its wrong it should only return the line which is having roll-over ( 3 notify us the day you check roll-over.) how can i use this query or modified this querey to get proper results? thanks Mahe

    B L 2 Replies Last reply
    0
    • H hvgyufg28fh38tyr78hf

      Hai All, I am doing following search in SQL Server2005, select * from table_1 where contains (text1,'"roll-over"') Results: 1 roll 2 notify us theday you roll check . 3 notify us the day you check roll-over. 4 notify us the day you check roll over. Could Some one tell me , is this results are right for this search?, i feel its wrong it should only return the line which is having roll-over ( 3 notify us the day you check roll-over.) how can i use this query or modified this querey to get proper results? thanks Mahe

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      You can try this search: select * from table_1 where columnname like '%roll-over%'


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

      1 Reply Last reply
      0
      • H hvgyufg28fh38tyr78hf

        Hai All, I am doing following search in SQL Server2005, select * from table_1 where contains (text1,'"roll-over"') Results: 1 roll 2 notify us theday you roll check . 3 notify us the day you check roll-over. 4 notify us the day you check roll over. Could Some one tell me , is this results are right for this search?, i feel its wrong it should only return the line which is having roll-over ( 3 notify us the day you check roll-over.) how can i use this query or modified this querey to get proper results? thanks Mahe

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        hvgyufg28fh38tyr78hf wrote:

        Could Some one tell me , is this results are right for this search?

        I'm not sure, but the documentation says that punctuation is ignored;

        Punctuation is ignored.

        I guess that you're searching for two separate terms in your query. Look through your resultset; there's 4 results that got either term. The source for this answer is here[^], under the heading "simple_term".

        Merry Christmas :thumbsup:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups