Welcome to Sign in | Help
in Search

QOD 70-442 2006-09-16

Last post 11-05-2006, 3:44 PM by xmldeveloper. 2 replies.
Sort Posts: Previous Next
  •  09-16-2006, 11:19 AM 87

    QOD 70-442 2006-09-16

    Which T-SQL predicate allows you to search columns containing character-based data types for precise or fuzzy (less precise) matches to single words and phrases?

    Place the mouse cursor HERE for the answer


    Cristian Andrei Lefter, SQL Server MVP
    MCT, MCSA, MCDBA, MCAD, MCSD .NET,
    MCTS, MCITP - Database Administrator SQL Server 2005
    http://sqlserver.ro
    Filed under:
  •  11-04-2006, 9:56 PM 739 in reply to 87

    Re: QOD 70-442 2006-09-16

    1. Ensure that the table has a unique, not null column (e.g. primary key)
    2. Create a full text catalog in which to store full text indexes for a given table
    3. Create a full text index on the text column of interest
    4. SELECT * FROM TableName WHERE CONTAINS(ColumnName,'bank')
    5.  

    Secolul XXI ori va fi religios ori nu va fi deloc
  •  11-05-2006, 3:44 PM 744 in reply to 739

    Re: QOD 70-442 2006-09-16

    The answer is: Use the CONTAINS predicate.
    Cristian Andrei Lefter, SQL Server MVP
    MCT, MCSA, MCDBA, MCAD, MCSD .NET,
    MCTS, MCITP - Database Administrator SQL Server 2005
    http://sqlserver.ro
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems