Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For Sharepoint 2010 content database, in which table and column is the list item attachment file saved
Posted

You should not be concerned with the tables and columns. Microsoft recommends not accessing the databases directly and can change this schema at any time.
 
Share this answer
 
it is in AllDocs Table,use this:
SQL
/****** Script for SelectTopNRows command from SSMS  ******/
SELECT top 10 [Id]
      ,[SiteId]
      ,[DirName]
      ,[LeafName]
      ,[WebId]
      ,[ListId]
      ,[DoclibRowId]
      ,[Type]
      ,[SortBehavior]
      ,[Size]
      ,[ETagVersion]
      ,[EffectiveVersion]
      ,[InternalVersion]
      ,[BumpVersion]
      ,[UIVersion]
      ,[Dirty]
      ,[ListDataDirty]
      ,[CacheParseId]
      ,[DocFlags]
      ,[ThicketFlag]
      ,[CharSet]
      ,[ProgId]
      ,[TimeCreated]
      ,[TimeLastModified]
      ,[NextToLastTimeModified]
      ,[MetaInfoTimeLastModified]
      ,[TimeLastWritten]
      ,[DeleteTransactionId]
      ,[SetupPathVersion]
      ,[SetupPath]
      ,[SetupPathUser]
      ,[CheckoutUserId]
      ,[CheckoutDate]
      ,[CheckoutExpires]
      ,[VersionCreatedSinceSTCheckout]
      ,[LTCheckoutUserId]
      ,[VirusVendorID]
      ,[VirusStatus]
      ,[VirusInfo]
      ,[MetaInfo]
      ,[MetaInfoSize]
      ,[MetaInfoVersion]
      ,[UnVersionedMetaInfo]
      ,[UnVersionedMetaInfoSize]
      ,[UnVersionedMetaInfoVersion]
      ,[WelcomePageUrl]
      ,[WelcomePageParameters]
      ,[IsCurrentVersion]
      ,[Level]
      ,[CheckinComment]
      ,[AuditFlags]
      ,[InheritAuditFlags]
      ,[DraftOwnerId]
      ,[UIVersionString]
      ,[ParentId]
      ,[HasStream]
      ,[ScopeId]
      ,[BuildDependencySet]
      ,[ParentVersion]
      ,[ParentVersionString]
      ,[TransformerId]
      ,[ParentLeafName]
      ,[IsCheckoutToLocal]
      ,[CtoOffset]
      ,[Extension]
      ,[ExtensionForFile]
      ,[ItemChildCount]
      ,[FolderChildCount]
      ,[FileFormatMetaInfo]
      ,[FileFormatMetaInfoSize]
      ,[FFMConsistent]
      ,[ContentVersion]
      ,[ListSchemaVersion]
      ,[ClientId]
  FROM [WSS_Content].[dbo].[AllDocs]
  order by TimeCreated desc
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900