All Products
Search
Document Center

Data Management:Export data

Last Updated:Apr 14, 2026

This topic shows you how to export a schema, a SQL result set, and an entire database.

Prerequisites

Export a schema

  1. Log in to DMS 5.0.

  2. In the Database Instances section on the left, find the database.

  3. Double-click the database name to open the SQLConsole tab.

  4. Right-click the target table and choose Export > Export Schema.

    Note

    You can also click the 扩展功能4 icon in the upper-right corner and choose All Schemas in Database.

  5. On the Export Schema page, export the schema as a data dictionary.

    You can export the document in Word, Excel, or PDF format.

Export a SQL result set

Note

You cannot export result sets from a NoSQL database.

  1. Log in to DMS 5.0.

  2. In the Database Instances section on the left, find the database.

  3. Double-click the database name to open the SQLConsole tab.

  4. Run a SQL query.

  5. In the Execution Result section, choose Export File > Export more data.

  6. Configure the following parameters and click Confirm.

    Parameter

    Description

    Reason Category

    Select a reason for the export to facilitate future tracking.

    Business Background

    Describe the business purpose of the export to improve communication.

    Stakeholder

    Only specified stakeholders, administrators, and DBAs can view the ticket.

    Export SQL statement

    Enter the SQL statement for the data export.

    Embed Watermark

    Specify whether to embed a watermark in the exported file. For more information, see Embed watermarks.

    • data watermark: Embeds identification information into the data. The watermark is not easily perceptible to data users.

      Note
      • We recommend using a data watermark when you export more than 200 rows of data.

      • To use a data watermark, you must enable Sensitive Data Protection on the database instance.

    • file watermark: Embeds visible identification information into the file.

  7. In the Ticket Submitted Successfully dialog box, click View Ticket.

  8. On the ticket details page, confirm the number of affected rows in the Precheck section, and then click Submit for Approval.

  9. After the ticket is approved, the system automatically starts the export task. After the task is complete, click Execute Export at the bottom of the ticket details page. Select a file type and a Character Set, and then click Confirm Execution.

  10. Click Download Exported File to save the file to your local device.

Important

When you export data to a CSV file, date fields may be displayed as serial numbers or garbled characters. This occurs because CSV files do not contain formatting information, and Excel opens them in the General format by default, which does not correctly interpret date values. To resolve this issue, select the column, right-click, choose Format Cells, and then select the Date category.

Export an entire database

You can export an entire database, including its schema, data, and structures such as stored procedures, functions, triggers, views, and events.

  1. Log in to DMS 5.0.

  2. In the Database Instances section on the left, find the database.

  3. Double-click the database name to open the SQLConsole tab.

  4. Right-click any table in the database and choose Export > Export this Database.

    Note

    You can also click the 扩展功能4 icon in the upper-right corner and choose Export this Database.

  5. Configure the parameters for the database export. The following table describes the parameters.

    Parameter

    Description

    Tables to export

    Specify whether to export Partial tables or All tables.

    If you choose to export only some tables, you need to select the tables that you want to export on the right.

    Reason Category

    Select a reason for the export to facilitate future tracking.

    Business Background

    Describe the business purpose of the export to improve communication.

    Stakeholder

    Only specified stakeholders, administrators, and DBAs can view the ticket.

    Content to export

    Select the content to export. You can export Data, Schema, or Data and Schema.

    Structure types to export

    Select the structure types to export. Supported types include stored procedure, function, trigger, view, and event.

    Note

    The available options depend on the database type and are shown in the console.

  6. After you configure the parameters, click Submit Application.

    Note

    After you submit the ticket, you are sent to the ticket details page. On this page, you can view the Basic Information of the ticket and its approval status.

  7. After the ticket is approved, the system automatically starts the export task. When the task is complete, click Download Exported File at the bottom of the ticket details page.

FAQ

  • Q: Why are only 3,000 rows displayed after exporting data from DMS?

    A: The SQL window in DMS limits queries and exports to 3,000 rows. To export more data, use an SQL result set export ticket.