July 2, 2008 at 4:42 pm
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.
July 3, 2008 at 12:14 am
[font="Verdana"]
try this...
SELECT DISTINCT emp
FROM #tblseat
With (index=IX_placing,NOLOCK)
Mahesh
[/font]
MH-09-AM-8694
July 3, 2008 at 9:35 am
Mike Levan (7/2/2008)
SELECT DISTINCT empFROM #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