locked
difference between SPList and table RRS feed

  • Question

  • Hello Friends,
    I am using Sharepoint list for storing and retrieving data. but we could have been done this with table from databse.
    whts actually difference between them. why we should use this. and whts concept of parent -child relationship between them. is this same relationship like rows inside table.

    and when we insert data into sharepoint list. where it is actullay stored? is this stored inside database ,if it is then how?
    Wednesday, March 17, 2010 9:06 AM

Answers

  • SPList data is stored in Content Database (Microsoft SQL).
    Do not use database directly, because it's structure may vary with applying Hotfixes, Service Packs, etc (Microsoft doesn't guarantee you that DB structure will be always same, but guarantees the same about Object Model)

    Best practice is to work with lists from Object Model or Web Services.
    If you are about SharePoint 2007, then there is big difference between Database table and SharePoint list - you can't do Join operations.
    • Proposed as answer by .Net Frenzy Wednesday, March 17, 2010 9:46 AM
    • Marked as answer by Mike Walsh FIN Wednesday, March 17, 2010 10:16 AM
    Wednesday, March 17, 2010 9:33 AM

All replies

  • SPList data is stored in Content Database (Microsoft SQL).
    Do not use database directly, because it's structure may vary with applying Hotfixes, Service Packs, etc (Microsoft doesn't guarantee you that DB structure will be always same, but guarantees the same about Object Model)

    Best practice is to work with lists from Object Model or Web Services.
    If you are about SharePoint 2007, then there is big difference between Database table and SharePoint list - you can't do Join operations.
    • Proposed as answer by .Net Frenzy Wednesday, March 17, 2010 9:46 AM
    • Marked as answer by Mike Walsh FIN Wednesday, March 17, 2010 10:16 AM
    Wednesday, March 17, 2010 9:33 AM
  • >Do not use database directly, because it's structure may vary with applying Hotfixes, Service Packs, etc (Microsoft doesn't guarantee you that DB structure will be always same, but >guarantees the same about Object Model)

    While it's probably true that the structure may vary, the common reason given for not accessing the database directly is that as the structure isn't known direct changes can cause it to be corrupt (and problems may appear later rather than at once).

    There's also the fact that MS won't support people who have made direct changes to their databases.

    FAQ sites: (SP 2010) http://wssv4faq.mindsharp.com; (v3) http://wssv3faq.mindsharp.com and (WSS 2.0) http://wssv2faq.mindsharp.com
    Complete Book Lists (incl. foreign language) on each site.
    Wednesday, March 17, 2010 10:36 AM