I have a caml query to retrieve only specific row which matched to the criteria, but it returns all the items in the LIST,
@"<Where><BeginsWith><FieldRef Name='custaname' /><Value Type='Lookup'>Prab</Value></BeginsWith></Where>";
with c# code it is like below
string getAllquery = @"<Where><BeginsWith><FieldRef Name='custaname' /><Value Type='Lookup'>Prab</Value></BeginsWith></Where>";
ServerProperties.custom.ServerProperties SP = new ServerProperties.custom.ServerProperties();
SPWeb _SPWeb = SP.GetConnected();
SPList _SPlist = _SPWeb.Lists["Orders"];
SPListItemCollection PubCollection = _SPlist.GetItems(getAllquery);
This query working perfect with CAML builder.
what i have missed here.?