Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to use SPSiteDataQuery to query from one SP farm to another. Both farms exist on the same active directory. What would be the most suitable approach? A custom web service might do it? An ideas will be appreciated

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

I would suggest creating a web service, and querying the web service from the other farm. I don't think you'll be able to use the SPSiteDataQuery object itself across the farm boundary.

share|improve this answer
    
That's correct. Because it's a different farm you have to use Web Services (either out of the box or custom) to query the data. –  Waldek Mastykarz Dec 13 '10 at 16:02
1  
I followed this at first: msdn.microsoft.com/en-us/library/ms464040(v=office.12).aspx This looks a pretty good intro: malikhan.wordpress.com/2009/08/07/… And this seems pretty thorough too: it.toolbox.com/blogs/sharepoint-blog/… –  Andy Burns Dec 14 '10 at 11:11
add comment

If you want to query across farms, the best way I think is Search. If you efficiently use keyword and full text queries, you can fine tune your search results similar to SPSiteDataQuery (or even better) across many farms without compromising on performance

Taking the step forward, If you have the powerful FAST search you can find almost anything!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.