Results 1 to 11 of 11

Thread: Search Result for anything that containt 'x' word

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818

    Search Result for anything that containt 'x' word

    right now i want to develop searching mechanism, it sound like google..so user type some words and the program will search for any column in certain table(or maybe entire tables in Database) and display the result..

    can i use something like that in SQL Server 2005?

    needs some idea

    thanks,

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

  2. #2
    Frenzied Member
    Join Date
    Aug 2006
    Location
    India, Punjab, Bhatinda
    Posts
    1,689

    Exclamation Re: Search Result for anything that containt 'x' word

    See if the attachment helps
    Attached Files Attached Files

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818

    Re: Search Result for anything that containt 'x' word

    thanks VBNewComer,

    but that's not what i mean, u just search based on "CompanyName" while the searching i mean is for whole field in whole table in one Database

    just like google mechanism, type once but it's for all the criteria above..

    i think it involved using Full Text Search...

    still need to digg it more

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Search Result for anything that containt 'x' word

    I seriously doubt that Google searches multiple columns - I would expect them to have a single column for search words.

    To be able to search multiple columns, you need to use multiple conditions, eg:
    Code:
    WHERE Field1 = Value
       OR Field2 = Value
       OR Field3 = Value
    You may find that Full Text Search is useful, I've never found a need for it myself so can't remember exactly what it does.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818

    Re: Search Result for anything that containt 'x' word

    thanks si

    I seriously doubt that Google searches multiple columns - I would expect them to have a single column for search words -> maybe, what i'm thinking is because they can dispay same url for different keywords

    To be able to search multiple columns, you need to use multiple conditions -> yes..but i ended up using many OR conditions

    You may find that Full Text Search is useful, I've never found a need for it myself so can't remember exactly what it does. -> i'll inform what i found later

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Search Result for anything that containt 'x' word

    Quote Originally Posted by erickwidya
    I seriously doubt that Google searches multiple columns - I would expect them to have a single column for search words
    -> maybe, what i'm thinking is because they can dispay same url for different keywords
    I expect they have one table for the keywords, one for page data (such as URL), and one for KeywordsPerPage - which would contain the ID's from the other two tables (one row for each keyword on a page).

    The search (ignoring the ranking process!) would theoretically be in two stages, find the ID's for the Keywords, and then search KeywordsPerPage by those ID's.


    Admittedly they probably use data-warehouse techniques rather than a standard relational model, but it would still only involve one keyword column.

  7. #7
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Search Result for anything that containt 'x' word

    Have a search for GetSchema, it will return important datas like tables and columns which you may query against.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818

    Re: Search Result for anything that containt 'x' word

    thanx dee-u, i'll take a look

    Full Text Search can do what i need

    With full-text searching, you can perform many other types of search:

    * Two words near each other
    * Any word derived from a particular root (for example run, ran, or running)
    * Multiple words with distinct weightings
    * A word or phrase close to the search word or phrase
    u can read it more here

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

  9. #9
    New Member
    Join Date
    Sep 2009
    Posts
    4

    Re: Search Result for anything that containt 'x' word

    deleted-
    Last edited by khab00key; Sep 14th, 2009 at 06:47 AM.

  10. #10
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Search Result for anything that containt 'x' word

    Welcome to VBForums

    Please do not add your questions to other peoples threads - especially when the thread topic is almost completely irrelevant to what you are doing (while there is a minor element of similarity, there are massive differences in the language etc).

    As your question is about the VB Editor in Excel (which is VBA rather than VB), you should post a new thread in our Office Development forum

  11. #11
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Search Result for anything that containt 'x' word

    Quote Originally Posted by si_the_geek View Post
    You may find that Full Text Search is useful, I've never found a need for it myself so can't remember exactly what it does.
    Normally you can't index a varchar/char field which is more than 900 characters in length. The full text search comes into this scene. It can index large text fields and also has its own support keywords for searching thru that data.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

Posting Permissions

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



Click Here to Expand Forum to Full Width