error

  • SELECT DISTINCT emp

    FROM #tblseat

    INDEX((IX_placing),NOLOCK)

    I get the this error when i exec above sql stament in a proc

    Incorrect syntax near 'INDEX'. If this is intended as a part of a table hint, A WITH keyword and parenthesis are now required. See SQL Server Books Online for proper syntax.

  • [font="Verdana"]

    try this...

    SELECT DISTINCT emp

    FROM #tblseat

    With (index=IX_placing,NOLOCK)

    Mahesh

    [/font]

    MH-09-AM-8694

  • Mike Levan (7/2/2008)


    SELECT DISTINCT emp

    FROM #tblseat

    INDEX((IX_placing),NOLOCK)

    I get the this error when i exec above sql stament in a proc

    Incorrect syntax near 'INDEX'. If this is intended as a part of a table hint, A WITH keyword and parenthesis are now required. See SQL Server Books Online for proper syntax.

    This happend when compatibility level of the db = 90.


    * Noel

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply