Bir programcık var sql veritabanına personel in hangi tarihte kart bastıgını yazıyor veriyi yazarken alttaki hatayı alıyoruz..asagıdakı sorguyu veritabanında quer ile sorguladıgımda syntax error alıyorum...


ODBC--call failed.;37000: [Microsoft][ODBC SQL Server Driver][SQL Server]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.;ODBC--call failed.;:

SELECT * FROM TTagLes (NOLOCK INDEX=PersNr) WHERE TLe_PersNr = 207 AND TLe_Datum = '10/13/2015 0:0:0'