All Products
Search
Document Center

ApsaraDB RDS:Change the character set collation and time zone of system databases

Last Updated:Mar 28, 2026

ApsaraDB RDS for SQL Server instances ship with a default collation (Chinese_PRC_CI_AS) and time zone (China Standard Time). If your application stores multilingual data or handles timestamps across multiple time zones, you can change these settings to match your requirements.

Before you change either setting, consider whether you are building a new application or migrating an existing one:

  • New application: Use UTC as the time zone. UTC eliminates ambiguity when storing and comparing timestamps across regions.

  • Migrating from on-premises SQL Server: Match the collation and time zone of your source instance to avoid unexpected query behavior after migration. To check your source instance's collation, run SELECT SERVERPROPERTY(N'Collation') on the on-premises instance.

Important

Both operations restart the instance and cause downtime. Plan changes during a maintenance window.

Background information

ApsaraDB RDS for SQL Server instances include the following system databases: master, msdb, tempdb, and model.

Limitations

Change the character set collation

Changing the collation restarts the instance and makes it unavailable for 2–10 minutes.

Important

The collation change option is only available when no user databases exist on the instance. If the option is not visible in the console, delete all user databases first. After deleting databases, confirm that neither the primary instance nor its secondary instance contains user databases before proceeding, as the deletion task may still be pending on the secondary.

Understanding collation suffixes

Collation names encode their sort behavior in suffixes. The default Chinese_PRC_CI_AS is case-insensitive and accent-sensitive. The table below decodes the common suffix combinations so you can choose the right collation from the console dropdown.

SuffixMeaning
_CICase-insensitive (WHERE name = 'Alice' matches alice)
_CSCase-sensitive (WHERE name = 'Alice' does not match alice)
_AIAccent-insensitive
_ASAccent-sensitive
_BINBinary sort order (byte-level comparison)

For self-managed databases on the same instance, change the collation at the database level without restarting the instance:

ALTER DATABASE <database_name> COLLATE <collation_name>;

Steps

  1. Log on to the ApsaraDB RDS console. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.

  2. In the left-side navigation pane, click Databases.

  3. On the Databases page, click Modify Character Set Collation Rule.

  4. In the dialog box, select the target collation in the Character Set Collation Rule field and click OK. The instance restarts immediately. It is unavailable for 2–10 minutes.

  5. After the instance is available again, go to the Basic Information page to confirm the new collation. To verify with T-SQL, run:

    SELECT SERVERPROPERTY('Collation');

    image

Change the time zone

Changing the time zone restarts the instance. Downtime depends on the edition:

EditionDowntime
High-availability Edition or Cluster EditionUp to 1 minute
Basic EditionUp to 5 minutes

What the time zone setting affects

The instance time zone governs the following SQL Server behaviors:

  • GETDATE(), SYSDATETIME(), and other local-time functions

  • SQL Server Agent job schedules

  • CLR code that reads the system time

It does not affect:

  • Data stored with explicit UTC offsets (e.g., datetimeoffset columns)

  • Application-layer time handling

Note

Some time zones observe daylight saving time (DST). When DST begins or ends, the clock shifts forward or back by one hour. The DST flag column in the time zones and UTC offsets table identifies which time zones observe DST.

Steps

  1. Log on to the ApsaraDB RDS console. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.

  2. In the left-side navigation pane, click Databases.

  3. On the Databases page, click Change Time Zone.

  4. In the dialog box, select the target time zone in the Time Zone field and click OK. For available time zones and their UTC offsets, see Time zones and UTC offsets. The instance restarts immediately.

  5. In the confirmation dialog box, click OK.

  6. After the instance is available again, go to the Basic Information page to confirm the new time zone. To verify with T-SQL, run:

    SELECT CURRENT_TIMEZONE();

    image

Time zones and UTC offsets

Note

Daylight saving time (DST) is a period during which clocks are set forward by one hour from standard time. The start and end dates vary by country and region. Time zones with a DST flag of DST+1 hour observe this adjustment.

Time zoneUTC offsetDST flagDescription
Afghanistan Standard Time(UTC+04:30)NoneKabul
Alaskan Standard Time(UTC-09:00)DST+1 hourAlaska
Aleutian Standard Time(UTC-10:00)DST+1 hourAleutian Islands
Altai Standard Time(UTC+07:00)NoneBarnaul, Gorno-Altaysk
Arab Standard Time(UTC+03:00)NoneKuwait, Riyadh
Arabian Standard Time(UTC+04:00)NoneAbu Dhabi, Muscat
Arabic Standard Time(UTC+03:00)NoneBaghdad
Argentina Standard Time(UTC-03:00)NoneCity of Buenos Aires
Astrakhan Standard Time(UTC+04:00)NoneAstrakhan, Ulyanovsk
Atlantic Standard Time(UTC-04:00)DST+1 hourAtlantic Time (Canada)
AUS Central Standard Time(UTC+09:30)NoneDarwin
AUS Eastern Standard Time(UTC+10:00)DST+1 hourCanberra, Melbourne, Sydney
Aus Central W. Standard Time(UTC+08:45)NoneEucla
Azerbaijan Standard Time(UTC+04:00)NoneBaku
Azores Standard Time(UTC-01:00)DST+1 hourAzores
Bahia Standard Time(UTC-03:00)DST+1 hourSalvador
Bangladesh Standard Time(UTC+06:00)NoneDhaka
Belarus Standard Time(UTC+03:00)NoneMinsk
Bougainville Standard Time(UTC+11:00)NoneBougainville Island
Canada Central Standard Time(UTC-06:00)NoneSaskatchewan
Cape Verde Standard Time(UTC-01:00)NoneCabo Verde Is.
Caucasus Standard Time(UTC+04:00)NoneYerevan
Cen. Australia Standard Time(UTC+09:30)NoneAdelaide
Central America Standard Time(UTC-06:00)NoneCentral America
Central Asia Standard Time(UTC+06:00)NoneAstana
Central Brazilian Standard Time(UTC-04:00)NoneCuiaba
Central Europe Standard Time(UTC+01:00)NoneBelgrade, Bratislava, Budapest, Ljubljana, Prague
Central European Standard Time(UTC+01:00)DST+1 hourSarajevo, Skopje, Warsaw, Zagreb
Central Pacific Standard Time(UTC+11:00)NoneSolomon Islands, New Caledonia
Central Standard Time(UTC-06:00)DST+1 hourCentral Time (US and Canada)
Central Standard Time (Mexico)(UTC-06:00)NoneGuadalajara, Mexico City, Monterrey
Chatham Islands Standard Time(UTC+12:45)DST+1 hourChatham Islands
China Standard Time(UTC+08:00)NoneBeijing, Chongqing, Hong Kong, Urumqi
Dateline Standard Time(UTC-12:00)NoneInternational Date Line West
E. Africa Standard Time(UTC+03:00)NoneNairobi
E. Australia Standard Time(UTC+10:00)DST+1 hourBrisbane
E. Europe Standard Time(UTC+02:00)DST+1 hourChisinau
E. South America Standard Time(UTC-03:00)NoneBrasilia
Easter Island Standard Time(UTC-06:00)DST+1 hourEaster Island
Eastern Standard Time(UTC-05:00)DST+1 hourEastern Time (US and Canada)
Eastern Standard Time (Mexico)(UTC-05:00)NoneChetumal
Egypt Standard Time(UTC+02:00)DST+1 hourCairo
Ekaterinburg Standard Time(UTC+05:00)NoneEkaterinburg
Fiji Standard Time(UTC+12:00)NoneFiji
FLE Standard Time(UTC+02:00)DST+1 hourHelsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius
Georgian Standard Time(UTC+04:00)NoneTbilisi
GMT Standard Time(UTC)NoneDublin, Edinburgh, Lisbon, London
Greenland Standard Time(UTC-03:00)DST+1 hourGreenland
Greenwich Standard Time(UTC)NoneMonrovia, Reykjavik
GTB Standard Time(UTC+02:00)DST+1 hourAthens, Bucharest
Haiti Standard Time(UTC-05:00)DST+1 hourHaiti
Hawaiian Standard Time(UTC-10:00)NoneHawaii
India Standard Time(UTC+05:30)NoneChennai, Kolkata, Mumbai, New Delhi
Israel Standard Time(UTC+02:00)DST+1 hourJerusalem
Jordan Standard Time(UTC+02:00)NoneAmman
Kaliningrad Standard Time(UTC+02:00)NoneKaliningrad
Kamchatka Standard Time(UTC+12:00)DST+1 hourPetropavlovsk-Kamchatsky - Old
Korea Standard Time(UTC+09:00)NoneSeoul
Libya Standard Time(UTC+02:00)DST+1 hourTripoli
Line Islands Standard Time(UTC+14:00)NoneKiritimati Island
Lord Howe Standard Time(UTC+10:30)DST+1 hourLord Howe Island
Magadan Standard Time(UTC+11:00)NoneMagadan
Magallanes Standard Time(UTC-03:00)DST+1 hourPunta Arenas
Marquesas Standard Time(UTC-09:30)NoneMarquesas Islands
Mauritius Standard Time(UTC+04:00)NonePort Louis
Mid-Atlantic Standard Time(UTC-02:00)NoneMid-Atlantic - Old
Middle East Standard Time(UTC+02:00)NoneBeirut
Montevideo Standard Time(UTC-03:00)NoneMontevideo
Morocco Standard Time(UTC+01:00)DST+1 hourCasablanca
Mountain Standard Time(UTC-07:00)DST+1 hourMountain Time (US and Canada)
Mountain Standard Time (Mexico)(UTC-07:00)NoneChihuahua, La Paz, Mazatlan
Myanmar Standard Time(UTC+06:30)NoneYangon (Rangoon)
N. Central Asia Standard Time(UTC+07:00)NoneNovosibirsk
Namibia Standard Time(UTC+02:00)DST+1 hourWindhoek
Nepal Standard Time(UTC+05:45)NoneKathmandu
New Zealand Standard Time(UTC+12:00)DST+1 hourAuckland, Wellington
Newfoundland Standard Time(UTC-03:30)DST+1 hourNewfoundland
Norfolk Standard Time(UTC+11:00)DST+1 hourNorfolk Island
North Asia East Standard Time(UTC+08:00)DST+1 hourIrkutsk
North Asia Standard Time(UTC+07:00)NoneKrasnoyarsk
Omsk Standard Time(UTC+06:00)NoneOmsk
Pacific SA Standard Time(UTC-03:00)NoneSantiago
Pacific Standard Time(UTC-08:00)DST+1 hourPacific Time (US and Canada)
Pacific Standard Time (Mexico)(UTC-08:00)NoneBaja California
Pakistan Standard Time(UTC+05:00)NoneIslamabad, Karachi
Paraguay Standard Time(UTC-04:00)DST+1 hourAsuncion
Romance Standard Time(UTC+01:00)DST+1 hourBrussels, Copenhagen, Madrid, Paris
Russian Standard Time(UTC+03:00)NoneMoscow, St. Petersburg, Volgograd
SA Eastern Standard Time(UTC-03:00)NoneCayenne, Fortaleza
SA Pacific Standard Time(UTC-05:00)NoneBogota, Lima, Quito, Rio Branco
SA Western Standard Time(UTC-04:00)NoneGeorgetown, La Paz, Manaus, San Juan
Saint Pierre Standard Time(UTC-03:00)DST+1 hourSaint Pierre and Miquelon
Sakhalin Standard Time(UTC+11:00)NoneSakhalin
Samoa Standard Time(UTC+13:00)DST+1 hourSamoa
Sao Tome Standard Time(UTC+01:00)NoneSao Tome
Saratov Standard Time(UTC+04:00)NoneSaratov
SE Asia Standard Time(UTC+07:00)NoneBangkok, Hanoi, Jakarta
Singapore Standard Time(UTC+08:00)NoneKuala Lumpur, Singapore
South Africa Standard Time(UTC+02:00)NoneHarare, Pretoria
Sri Lanka Standard Time(UTC+05:30)NoneSri Jayawardenepura
Sudan Standard Time(UTC+02:00)NoneKhartoum
Taipei Standard Time(UTC+08:00)NoneTaipei
Tasmania Standard Time(UTC+10:00)DST+1 hourHobart
Tocantins Standard Time(UTC-03:00)DST+1 hourAraguaina
Tokyo Standard Time(UTC+09:00)NoneOsaka, Sapporo, Tokyo
Tomsk Standard Time(UTC+07:00)NoneTomsk
Tonga Standard Time(UTC+13:00)NoneNuku'alofa
Transbaikal Standard Time(UTC+09:00)NoneChita
Turkey Standard Time(UTC+03:00)NoneIstanbul
Turks And Caicos Standard Time(UTC-05:00)DST+1 hourTurks and Caicos
Ulaanbaatar Standard Time(UTC+08:00)NoneUlaanbaatar
US Eastern Standard Time(UTC-05:00)DST+1 hourIndiana (East)
US Mountain Standard Time(UTC-07:00)NoneArizona
UTCUTCNoneCoordinated Universal Time
UTC-02(UTC-02:00)NoneCoordinated Universal Time-02
UTC-08(UTC-08:00)NoneCoordinated Universal Time-08
UTC-09(UTC-09:00)NoneCoordinated Universal Time-09
UTC-11(UTC-11:00)NoneCoordinated Universal Time-11
UTC+12(UTC+12:00)NoneCoordinated Universal Time+12
UTC+13(UTC+13:00)NoneCoordinated Universal Time+13
Venezuela Standard Time(UTC-04:00)NoneCaracas
Vladivostok Standard Time(UTC+10:00)DST+1 hourVladivostok
Volgograd Standard Time(UTC+04:00)NoneVolgograd
W. Australia Standard Time(UTC+08:00)NonePerth
W. Central Africa Standard Time(UTC+01:00)NoneWest Central Africa
W. Europe Standard Time(UTC+01:00)DST+1 hourAmsterdam, Berlin, Bern, Rome, Stockholm, Vienna
W. Mongolia Standard Time(UTC+07:00)DST+1 hourHovd
West Asia Standard Time(UTC+05:00)NoneAshgabat, Tashkent
West Bank Standard Time(UTC+02:00)DST+1 hourGaza, Hebron
West Pacific Standard Time(UTC+10:00)NoneGuam, Port Moresby
Yakutsk Standard Time(UTC+09:00)NoneYakutsk

API reference

Use the following API operations to query or change the collation and time zone programmatically: