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 am working with sharepoint 2010. I have an external list. I need to retrieve the list items from the external list for which i am using the following code below.

SPQuery query=new SPQuery();
query.ViewXml=list.DefaulView.SchemaXml;
DataTable table=list.GetItems(query).GetDataTable();

Question 1: The above process consumes a lot of time and finally shows the message while debigging that "Function evaluation disabled because the previous function evaluation timed out" Can anyone tell me why does this happen?

Question 2: I use the property HasExternalDataSource in order to check whether the list is en external list or not. But this property works in sharepoint foundation 2010 only. Does this property can be used in sharepoint 2010 server also?

Regards, Sharmila

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.