點燈坊

失くすものさえない今が強くなるチャンスよ

Using MSSQL on AWS RDS

Sam Xiao's Avatar 2021-11-08

AWS RDS provides service for MSSQL and we can use SSMS locally to connect to remote MSSQL. If we want to use MSSQL for free, there are few steps to note.

Version

MSSQL 2017

Creation Method

mssql000

Use Standard create to create new MSSQL。

Do not choose Easy create. Because we want to use SSMS locally to connect to remote MSSQL, only Standard create provides public IP address.

Engine Type

mssql001

Choose MSSQL.

MSSQL Edition

mssql002

Choose SQL Server Express Edition and version.

If we want to use MSSQL for free, we have to choose SQL Server Express Edition

Templates

mssql003

Choose Free tier template for free.

DB Instance

mssql004

Setup DB instance name.

Username & Password

mssql005

Setup id and password。

Public Access

mssql006

  • Public access:Yes

In order to connect to MSSQL by SSMS locally, we have to set Public access to yes to provide public IP address. This is a crucial step.

Estimated Cost

mssql007

  • If we choose any wrong step for paid service, it will be shown here
  • Click Create database to create new MSSQL

Database List

mssql008

AWS RDS create MSSQL successfully.

Endpoint & Port

mssql011

Get endpoint and port to login by SSMS.

SSMS

mssql012

Use SSMS to login MSSQL :

  • Server type:Database Engine
  • Server name:paste endpoint
  • Authentication:choose SQL Server Authentication
  • Login:admin
  • Password:password for admin

mssql013

SSMS connect to remote MSSQL successfully.

Conclusion

  • Although MSSQL on AWS RDS is a paid service, but free service offers 2GB database is enough for testing and demo
  • If we want to use SSMS locally to connect to remote MSSQL, it has to provide public IP address as noted steps above