Docs Table

The Docs table stores metadata about documents.

Warning  Modifying the database schema or database structures is not supported. Changes that you make to the database contents may be overwritten when you install updates or service packs for Windows SharePoint Services, or when you upgrade an installation to the next product version.

Columns

Column nameData typeDescription
IduniqueidentifierGUID of the document.
SiteIduniqueidentifierGUID of the site to which the document belongs.
DirNamenvarcharDirectory in which the file is stored.
LeafNamenvarcharName of the file or folder.
WebIduniqueidentifierGUID of the subsite to which the document belongs. Found in the Webs table.
ListIduniqueidentifierGUID of the list with which the document is associated.
DoclibRowIdintRow ID of the document. Documents stored in a document library are numbered in the order in which they are uploaded.
Typetinyint1 for a folder; 0 for a file.
SizeintSize of the document.
MetaInfoSizeintSize of the metadata.
VersionintCurrent version number of the document. Initial version is 1.
UIVersionintDocument version number that is displayed to users.
DirtybitValue that indicates whether a document needs to be reparsed. When true, it is used to clean up links inside the document after a document rename.
CacheParseIduniqueidentifierGUID value used for optimistic concurrency checking.
DocFlagstinyintBit field used for various settings.
ThicketFlagbitValue that indicates whether the document has additional supporting files.
CharSetintAssumed Microsoft Windows character set of the document.
TimeCreateddatetimeDate and time the file was created.
TimeLastModifieddatetimeDate and time the file was modified.
NextToLastTimeModifieddatetimeDate and time the file was modified previous to TimeLastModified.
MetaInfoTimeLastModifieddatetimeDate and time the metadata was updated.
TimeLastWrittendatetimeDate and time the document was written.
SetupPathnvarcharPath from which the file was originally installed.
CheckoutUserIdintID of the user in the UserInfo table who has the file checked out.
CheckoutDatedatetimeDate and time that the file was checked out.
CheckoutExpiresdatetimeDate and time that the checkout expires. Does not get cleared when the checkout expires.
CheckoutSizeintSize of the file when it was checked out.
VersionCreatedSinceSTCheckoutbitFlag that prevents multiple document versions from being created on a single short-term checkout.
LTCheckoutUserIdintID of the user in the UserInfo table who has the file checked out.
VirusVendorIDintID of the antivirus vendor.
VirusStatusintStatus of the virus scan.
VirusInfonvarcharInformation about a virus, if detected.
MetaInfoimageMetadata in a binary field.
ContentimageContent of the file in a binary field.
CheckoutContentimageField that overwrites the Content field when the file is checked in.

Page view tracker