Updated on 2024-08-29 GMT+08:00

Creating a Database

This section describes how to create a database on the DAS console.

Procedure

  1. Log in to the DAS console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. In the database list of the Home page, click Create Database.

    Figure 1 Creating a database

  7. On the displayed page, enter a database name and set information including recovery mode, compatibility level, and database read-only.

    Figure 2 Creating a database
    Table 1 Parameter description

    Parameter

    Description

    Name

    Enter a database name.

    Recovery Mode

    The value is Full by default, indicating a full recovery for the database.

    Compatibility Level

    Multiple Microsoft SQL Server database versions are available. The compatibility varies with the database version. A later version is recommended.

    Containment Type

    The value can be None or Partial. Microsoft SQL Server 2012 (11.x) and later versions support the containment type.

    Database Read-only

    The value can be False or True. If True is selected, a read-only database is created.

    Allow Snapshot Isolation

    The value can be False or True. Value True indicates that snapshots are isolated in emergent scenarios to protect the database data.

    Database Files

    By default, row database files and log database files can be added. You can also modify the initial and autogrowth sizes of existing database files if needed.

  8. Confirm the settings and click OK. View the created database in the database list.