MSSDBSTATT SAP (Table statistics for MS SQL Server) Table details

Dictionary Type: Table
Description: Table statistics for MS SQL Server




ABAP Code to SELECT data from MSSDBSTATT
Related tables to MSSDBSTATT
Access table MSSDBSTATT




Table field list including key, data, relationships and ABAP select examples

MSSDBSTATT is a standard SAP Table which is used to store Table statistics for MS SQL Server data and is available within R/3 SAP systems depending on the version and release level.

The MSSDBSTATT table consists of various fields, each holding specific information or linking keys about Table statistics for MS SQL Server data available in SAP. These include TOTALROWS (Number of rows), DATASIZE (Data size in KB), RESERVED (Reserved size in KB), INDEXSIZE (Index size in KB).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class: L - Table for storing temporary data, is delivered empty
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP MSSDBSTATT table fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
TABLENAMETable name MSSTABLECHAR128MSSSYSNAME
TOTALROWSNumber of rows MSSNUMROWSDEC15
DATASIZEData size in KB MSSDATASIZEDEC15
RESERVEDReserved size in KB MSSRESSIZEDEC15
INDEXSIZEIndex size in KB MSSINDEXSIZEDEC15
ROWMODCTRRow modification counter MSSROWMODCTRINT410
STATSSCHVERStatistics schema version MSSSTATSSCHVERINT410
INDEXDEPTHDepth MSSINDDEPTHINT410
NUMINDEXESNumber of indexes of a table MSSNUMINDSINT410
NUMSTATSNumber of statistics of a table MSSNUMSTATSINT410
STATSDATELast update statistics MSSSTATSDATECHAR20
TABLEOPTIONSTable options on locking and memory MSSTABOPTSCHAR10CHAR10
BUFFSTATUSSAP table buffering status on application server. MSSTABBUFFCHAR4CHAR4
FILEGROUPFilegroup name MSSFGCHAR128MSSSYSNAME
SCANDENSITYScan density MSSSCANDENSITYDEC5(2)
LOGICALFRAGLogical scan fragmentation MSSLOGSCANFRAGDEC5(2)
NUMPAGESNumber of pages in index level MSSILPAGESDEC16
BESTCOUNTIdeal number of extent changes MSSBESTCOUNTDEC16
ACTUALCOUNTActual number of extent changes MSSACTCOUNTDEC16
EXTENTSWITCHESNumber of extent switches MSSEXTSWITCHESDEC16
LASTTABLE 0
LASTRUN 0
LASTDURATIONExecution duration of an operation in seconds. MSSDURATEINT410INT4

Key field Non-key field



How do I retrieve data from SAP table MSSDBSTATT using ABAP code

The following ABAP code Example will allow you to do a basic selection on MSSDBSTATT to SELECT all data from the table
DATA: WA_MSSDBSTATT TYPE MSSDBSTATT.

SELECT SINGLE *
FROM MSSDBSTATT
INTO CORRESPONDING FIELDS OF WA_MSSDBSTATT
WHERE...

How to access SAP table MSSDBSTATT

Within an ECC or HANA version of SAP you can also view further information about MSSDBSTATT and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!