Luke
2006-01-26 15:50:16 UTC
When I run a script to get information from a index server by a linked
server. I got ann error:
--------------
An error occurred while preparing a query for execution against OLE DB
provider 'MSIDXS'.
[OLE/DB provider returned message: Incorrect syntax near '-1.'.
Expected end-of-file, ';', AS, CREATE, DOT, DOTDOT, DOTDOT_SCOPE,
DOTDOTDOT, DOTDOTDOT_SCOPE, DROP, ORDER_BY, SELECT, SET, WHERE.
SQLSTATE=42000 ]
-----------------------
the script is :
-----------------
SELECT *
FROM OPENQUERY( lsIndexServer,
'Select DocTitle,Filename,Size,PATH,URL from
Bacchus-1.web..SCOPE()')
---------------------
the reason is the machine can not cut "Bacchus-1" as a whole string ,
does any body have any idea to fix this problem
server. I got ann error:
--------------
An error occurred while preparing a query for execution against OLE DB
provider 'MSIDXS'.
[OLE/DB provider returned message: Incorrect syntax near '-1.'.
Expected end-of-file, ';', AS, CREATE, DOT, DOTDOT, DOTDOT_SCOPE,
DOTDOTDOT, DOTDOTDOT_SCOPE, DROP, ORDER_BY, SELECT, SET, WHERE.
SQLSTATE=42000 ]
-----------------------
the script is :
-----------------
SELECT *
FROM OPENQUERY( lsIndexServer,
'Select DocTitle,Filename,Size,PATH,URL from
Bacchus-1.web..SCOPE()')
---------------------
the reason is the machine can not cut "Bacchus-1" as a whole string ,
does any body have any idea to fix this problem