SPQuery Returns All of the Items
During a development project, calling SPQuery returned all items from list! Looks like it just ignored the filters we applied. Fix: This above code returns all items in the list, but if you remove the <Query> tag all works fine: “<Query><Where><Eq><FieldRef Name=”Title” /><Value Type=”Text”>Test</Value></Eq></Where></Query>“;Â Remember, Query XML is case sensitive! So <Where>…
Read more