Say if I need to retrieve list items for batch processing, how would I be recommended to retrieve the data? Maybe Powershell or a SQL Server query?
|
Definitely don't want to go the SQL query route because you can easily create an ineffecient query if you don't understand the underlying data model...also possible that you'll develop a query that breaks or becomes inefficient after a CU or SP is applied. CAML queries are very efficient and depending on the scope of your query you have a lot of options.
Either method can be used via .NET or PowerShell to return a list of items that can be iterated through for batch processing. EDIT: I should also mention that an invaluable tool when working with CAML is the u2u CAML Query Builder. I'm not aware of a SP2010-specific version, but I have never had any problems running the SP2007 version on 2010: http://www.u2u.net/Tools/wincamlquerybuilder/CamlQueryBuilder.aspx |
|||||
|
|
You can query data from SharePoint using various approaches as mentioned below.
So any of these approaches you can fetch data from SharePoint. Below are a couple of links that can help you in detail on these approaches. http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems.aspx http://www.a2zdotnet.com/View.aspx?Id=100 Hope it helps. Regards, Geetanjali |
|||
|
|
|
For SharePoint 2010, I'd recommend using the Client Object Model. It allows for development without having to resort to installing SharePoint on the developer's PC (or developing ON the SharePoint server). |
|||
|
|
|
Well, surely don't forgot about Search option. Time to time it might be appropriate solution as well. |
||||
|
|