MSQ_DBDATA SAP (Contains information on a database) Structure details

Dictionary Type: Structure
Description: Contains information on a database




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




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

MSQ_DBDATA is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Contains information on a database" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_MSQ_DBDATA TYPE MSQ_DBDATA.

The MSQ_DBDATA table consists of various fields, each holding specific information or linking keys about Contains information on a database data available in SAP. These include CRDATE (Date the database was created.), CMPTLEVEL (Compatibility level SQL Server is running on.), AUTOSTCRE (AUTO_CREATE_STATISTICS: missing statistics auto. generated.), AUTOSTUPD (AUTO_UPDATE_STATISTICS: Out of date statistics auto. updated).. 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:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP MSQ_DBDATA structure 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
DBNAMEThe name of the database in SQL Server instance. MSQDBNAMECHAR255CHAR255
CRDATEDate the database was created. MSQDBCREDTCHAR12CHAR12
CMPTLEVELCompatibility level SQL Server is running on. MSQDBCMPLVINT410INT4
AUTOSTCREAUTO_CREATE_STATISTICS: missing statistics auto. generated. MSQDBASCRECHAR1CHAR1
AUTOSTUPDAUTO_UPDATE_STATISTICS: Out of date statistics auto. updated MSQDBASUPDCHAR1CHAR1
AUTOCLOSEThe database will close down when the last user logs out MSQDBAUTCLCHAR1CHAR1
BULKCOPYSELECT INTO and fast bulk copies are allowed. MSQDBULKCPCHAR1CHAR1
TRUCLOGTrunc. log on chkpt.: checkpoint when log is 70% full. MSQDBTRCLGCHAR1CHAR1
TORNPGDETTORN_PAGE_DETECTION: incomplete pages can be detected. MSQDBTPDETCHAR1CHAR1
LOADINGThe database is in a loading state. MSQDBLOADCHAR1CHAR1
PRERECVYThe database is in a prerecovering state MSQDBPRERCCHAR1CHAR1
RECOVERYRecovery of the database is underway. MSQDBRECVRCHAR1CHAR1
NOTRECVRThe database is not recovering MSQDBNOTRCCHAR1CHAR1
DBOFFLINEThe database is in status OFFLINE. MSQDBOFFLNCHAR1CHAR1
READONLYThe database is in read only mode. MSQDBRDOLYCHAR1CHAR1
DBOONLYRESTRICTED_USER: Only the DB owner can access the database. MSQDBDBOCHAR1CHAR1
SINGLEUSERSINGLE_USER: the database is in single user mode. MSQDBSNGLECHAR1CHAR1
EMERGYMDDatabase is in emergency mode. MSQDBEMRGYCHAR1CHAR1
AUTOSHRINKAUTO_SHRINK: when 25% of the file is unused, file is shrunk. MSQDBAUTSHCHAR1CHAR1
CLNSHTDWNDatabase was cleanly shutdown MSQDBCLNSDCHAR1CHAR1
ANSINULDEFANSI_NULL_DEFAULT: NULL values allowed as default. MSQDBUSRANCHAR1CHAR1
CCNULLCONCAT_NULL_YIELDS_NULL: NULLs concatenated result in NULL. MSQDBCNULLCHAR1CHAR1
RECTRIGGERRECURSIVE_TRIGGERS: enables recursive firing of triggers. MSQDBRECTRCHAR1CHAR1
DEFLOCCURCURSOR_DEFAULT LOCAL: cursor declarations default to LOCAL MSQDBLOCDFCHAR1CHAR1
QUOTEDIDQuoted identifier: ' can be used to surround identifiers. MSQDBQUTIDCHAR1CHAR1
CCONCOMMITCursor close on commit:any cursors open are closed on commit MSQDBCURCMCHAR1CHAR1
ANSINULLSANSI_NULLS: any comparisons to a NULL value evaluate to NULL MSQDBNULLCHAR1CHAR1
ANSIWARNANSI_WARNINGS: null values in aggregate fcns, or divide by 0 MSQDBWARNCHAR1CHAR1
FULLTXTENInitializes fulltext indexing or removes all fulltext catalg MSQDBFLTXTCHAR1CHAR1
DBSUSPECTDatabase is marked as suspect. MSQDBSUSPCCHAR1CHAR1
DBSHUTDOWNDatabase encountered a problem during startup. MSQDBSHTDWCHAR1CHAR1
DBSTANDBYDatabase is functioning as a standby server. MSQDBSTDBYCHAR1CHAR1
ARITHABORTARITHABORT: Terminates on overflow or divide-by-zero error. MSQDBARTACHAR1CHAR1
NUMRNDABRTNUMERIC_ROUNDABORT: error on loss of precision in expression MSQDBRNDACHAR1CHAR1
DBSIZEDatabase size in MB (data files). MSQDBSIZEDEC16
DBFREEDatabase free space in data files in MB. MSQDBFREEINT410INT4
DBUSEDDatabase used space in data files in MB. MSQDBUSEDINT410INT4
LOGSIZESize of the database transaction log in MB. MSQLOGSIZEINT410INT4
LOGFREEFree space in database transaction log in MB . MSQLOGFREEINT410INT4
LOGUSEDUsed space in database transaction log in MB. MSQLOGUSEDINT410INT4
DBNUMSAPNumber of connections to SAP database from SAP application. MSQDBSAPPCINT410INT4
DBNUMOTHERNumber of non-SAP processes connected to SAP database. MSQDBNUMPCINT410INT4
DBNDIFFUSENumber of different users connected to SAP database MSQDBNDUSRINT410INT4

Key field Non-key field



How do I retrieve data from SAP structure MSQ_DBDATA using ABAP code?

As MSQ_DBDATA is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on MSQ_DBDATA as there is no data to select.

How to access SAP table MSQ_DBDATA

Within an ECC or HANA version of SAP you can also view further information about MSQ_DBDATA 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!