Discussion:
Multiple catalogs search
(too old to reply)
Jerry C
2006-11-09 21:45:02 UTC
Permalink
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,
--
Jerry
WenJun Zhang[msft]
2006-11-10 08:50:46 UTC
Permalink
Hi Jerry,

I'm in the process of building a test and will update you with the
conclusion. Please wait for my follow up.

Have a good weekend.

Sincerely,

WenJun Zhang

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at:

http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
WenJun Zhang[msft]
2006-11-14 10:54:58 UTC
Permalink
Hi Jerry,

I've confrimed with our IS team. The AS keyword isn't a supported keyword
for our OLEDB provider.

SQL Queries and SQL Extensions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/indexsrv/ht
ml/ixrefqls_3wj7.asp?frame=true

If you check the instruction on MSDN above, you will see it isn't listed
above as well.

So I'd suggest you expand the data set in your code to add the computer
name field manually. Or please refer to Hilary's suggestion to try using an
union query.

Please update here if you have further question.

Thanks.

Sincerely,

WenJun Zhang

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at:

http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Hilary Cotter
2006-11-10 23:59:45 UTC
Permalink
try something like this:

strSelect="Select DocTitle, vpath, write, size,characterization from (table
Server1.test..scope()union all table Server2.web..scope()) where contains
('microsoft') "
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
Post by Jerry C
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,
--
Jerry
Loading...