Hot answers tagged database
In SharePoint querying of lists is done using CAML query instead of SQL queries. Tools like CAML Query Helper and U2U CAML Query builder can be used to generate your query and to test it. Check this post on creating Visual Webparts for SharePoint 2010 Now you can use below code as a starting point for reading data from list. using (SPSite site = new ...
Only top voted, non community-wiki answers of a minimum length are eligible