Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7129647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:15:53+00:00 2026-05-28T11:15:53+00:00

In SharePoint 2003 and 2007, there was a table called AllLists which had a

  • 0

In SharePoint 2003 and 2007, there was a table called AllLists which had a column called tp_Fields which contained an xml containing all fields for a specific list.

an example of the xml stored in the tp_Fields column would be this for a SharePoint List with 3 fields:

<FieldRef Name="ContentTypeId" />
<FieldRef Name="_ModerationComments" ColName="ntext1" />
<FieldRef Name="WebPartTypeName" ColName="nvarchar9" />

We have an application that is reading from this column using C# code e.g.

var tpFields = (String) drView["tp_Fields"];

In SharePoint 2010, the datatype of this column has changed to varbinary and contains just some binary data instead!

(I know the ideal/recommended solution was to use the SharePoint web services or SharePoint object model and not relying on the underlying tables but unfortunately we have an existing app and we’d need to make it work with 2010 as well. I hope we don’t have to redesign everything!)

How could I know what fields a SharePoint list has from its database in SharePoint 2010? or if possible how to convert this varbinary column to its equivalent xml like before?

I hope the question is clear (have little hope about its possibility tbh).

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:15:54+00:00Added an answer on May 28, 2026 at 11:15 am

    Just to share, I wrote the below method and it can now extract the xml from it although there is no quarantee the resulting xml is compatible with SharePoint 2003/2007.

     private static string getXmlFromTpFields(byte[] tpFields)
            {
                using (var memoryStream = new MemoryStream(tpFields))
                {
                    // ignore the first 14 bytes; I'm not sure why but it works!
                    for (var index = 0; index <= 13; index++)
                        memoryStream.ReadByte();
    
                    var deflateStream = new DeflateStream(memoryStream, CompressionMode.Decompress);
    
                    using (var destination = new MemoryStream())
                    {
                        deflateStream.CopyTo(destination);
    
                        var streamReader = new StreamReader(destination);
                        destination.Position = 0;
                        return streamReader.ReadToEnd();
                    }
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With SharePoint Server 2007 , there is also a Search Feature and a Crawler.
We recently upgraded an intranet site created in SharePoint 2003 to SharePoint 2007. After
I am using SharePoint Server 2007 Enterprise with Windows Server 2003 R2 Enterprise. I
We have a bunch of story libraries in Sharepoint 2003 for all of our
I'm moving our Sharepoint site 3.0 2007 from a Windows server 2003 machine to
I have items in a list in a SharePoint 2003 site that I need
I have a web part with links to e.g. Manage Users i SharePoint (2003)
[SharePoint/MOSS 2007] I want to access several web services (on external sites, with WSDL
My Sharepoint 2007 web part executes code to start a K2 workflow process. The
We are using the Sharepoint.OpenDocuments.EditDocument2 ActiveX control and method. The method is being called

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.