Posts

Showing posts from March, 2016

How to use CAML query with SharePoint 2013 List

Image
Hi There, So its a very basic question that how would you use a CAML query to fetch items from a SharePoint list? Its very simple to use and very fast as compared to other list query options. Below is the stuff to understand. I have a list that have Posts of my blog as its a blog site. I have to query below few columns using their internal names.  To find internal name of the columns, you can use a tool "SP CAML Query Helper Online"  or try with any other method. This tool is very helpful in building CAML query. In below screenshot i am using internal name of "# Comments" which is  "NumComments". The Code:                   I am getting most recent three items from the list based on the created date and order by Created date descending.  The columns you wan to select from the list should be in ViewFields. private SPListItemCollection GetListItems ( SPList oList ) { string sQuery = @"<

MOSS 2007 Error While Central Administration Navigation

Image
Hi There, We got an error while using SharePoint 2007 or MOSS 2007 in our production farm that whenever we navigate to few links in MOSS 2007, the pages seems crashing. SharePoint threw some unexpected errors with a correlation ID. Nothing special found in ULS logs regarding this crash. SharePoint was working fine with no issue. Each and every MOSS site was working as expected. The issue was only with SharePoint 2007 Central Administration. After some troubleshooting we were able to locate some error and noticed that its throwing from SQL server side not any SharePoint crash. Digging out more confirmed its a SQL server issue. Below are the error details. Error: A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)    at