Jerry C
2006-11-09 21:45:02 UTC
This is about the same subject as the previous post but I am trying it
differently.
I just create a list of the servers I want to search run the queries and
then merge the data sets from each query. But I want to put the name of the
machine in the query string like this.
select 'cdxyz' as computer, filename, path, size, write, attrib,
characterization from cdxyz.System..FILEINFO_ABSTRACT where filename like
'%text%' order by rank desc
I have everything working but when I put in the "'cdxyz' as computer" I get
a error.
Incorrect syntax near ''cdxyz''. Expected '*', ALL, CREATE, ID.
SQLSTATE=42000
Thank you,
differently.
I just create a list of the servers I want to search run the queries and
then merge the data sets from each query. But I want to put the name of the
machine in the query string like this.
select 'cdxyz' as computer, filename, path, size, write, attrib,
characterization from cdxyz.System..FILEINFO_ABSTRACT where filename like
'%text%' order by rank desc
I have everything working but when I put in the "'cdxyz' as computer" I get
a error.
Incorrect syntax near ''cdxyz''. Expected '*', ALL, CREATE, ID.
SQLSTATE=42000
Thank you,
--
Jerry
Jerry