Database Options - SQL Server to Aurora PostgreSQL Migration Playbook
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Database Options

Feature compatibility Amazon SCT / Amazon DMS automation level Amazon SCT action code index Key differences


                              One star feature compatibility

N/A

N/A

Difference.

SQL Server Usage

SQL Server provides database level options that you can set using the ALTER DATABASE …​ SET command. You can use these settings to:

  • Set default session options. For more information, see Session Options.

  • Enable or disable database features such as SNAPSHOT_ISOLATION, CHANGE_TRANCKING, and ENABLE_BROKER.

  • Configure high availability and disaster recovery options such as always on availability groups.

  • Configure security access control such as restricting access to a single user, setting the database offline, or setting the database to read-only.

Syntax

Syntax for setting database options:

ALTER DATABASE { <database name> } SET { <option> [ ,...n ] };

Examples

Set a database to read-only and use ARITHABORT by default.

ALTER DATABASE Demo SET READ_ONLY, ARITHABORT ON;

Set a database to use automatic statistic creation.

ALTER DATABASE Demo SET AUTO_CREATE_STATISTICS ON;

Set a database offline immediately.

ALTER DATABASE DEMO SET OFFLINE WITH ROLLBACK IMMEDIATE;

For more information, see ALTER DATABASE SET options (Transact-SQL) in the SQL Server documentation.

PostgreSQL Usage

Amazon Aurora PostgreSQL-Compatible Edition (Aurora PostgreSQL) supports CREATE SCHEMA and CREATE DATABASE statements.

As with SQL Server, Aurora PostgreSQL does have the concept of an instance hosting multiple databases, which in turn contain multiple schemas. Objects in Aurora PostgreSQL are referenced as a three-part name: <database>.<schema>.<object>.

Database options are related to the cluster-level parameters which are managed by the Amazon Cluster Parameter Groups. You can find some SQL Server equivalent parameters at the instance level in the Amazon Database Parameter Group.

Datable options are being compared to Amazon Database Parameter Group and Server Options are being compared to Amazon Cluster Parameter Group. For more information, see Server Options.