Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

Launch SQL Server instances on AMAZON EC2

$
0
0

By:Ranga Babu || Related Tips:More >Cloud Computing

Problem

Amazon EC2 offers another option for putting SQL Server in the cloud. It is easy to setup, upgrade and you are only charged when the box is in use. Let's take a look at how to use Amazon EC2 for SQL Server.

Solution

Amazon EC2 instances are easy to launch and use. They can be easily upgraded with more RAM, CPU and disk space. Billing is done on an hourly basis and they do not charge when the box is shut down. Let's look at how to use Amazon EC2 for SQL Server.

Login to the Amazon console. Click on EC2 as shown below.


Launch SQL Server instances on AMAZON EC2

Select a region on top right hand side and then click on Launch Instance .


Launch SQL Server instances on AMAZON EC2

Select appropriate Amazon Machine Image (AMI) and instance type as shown below.


Launch SQL Server instances on AMAZON EC2

On the Configure Instance Details page you need to specify the number of instances (default is one). If you need more similar instances you can increase the number.


Launch SQL Server instances on AMAZON EC2

On the Add Storage page click on Add New Volume to add additional EBS (Elastic Block Store) volumes if you want to separate data and log files.


Launch SQL Server instances on AMAZON EC2

On the Security Group page create a new security group and specify rules to access the instance. Here you can specify different rules for different traffic. Once you review and click the launch button, it asks to create a new key pair for the first time. Download the .pem file, because we will need this .pem file to get a windows password.


Launch SQL Server instances on AMAZON EC2

Click on Instances which lists the instances you created. Select an instance and click on Connect.


Launch SQL Server instances on AMAZON EC2

On the Get Password screen, select the .pem file you downloaded earlier and select Decrypt Password .


Launch SQL Server instances on AMAZON EC2

To connect to your instance, you can connect via RDP using Administrator as the user name and the given password. You can see the IP address for the RDP connection in the lower right corner.


Launch SQL Server instances on AMAZON EC2

Once you get the password, RDP to the box using the IP Address. Once logged into the box you can see the default SQL Server instance installed on the box. (Note: I masked the IP addresses below, but this is where you will see the them.)


Launch SQL Server instances on AMAZON EC2

Another thing to note is that the IP Address is dynamic and will change on a restart. So we need to create an elastic IP Address and assign it to the instance. To do so select Allocate New Address and create a new Elastic IP.


Launch SQL Server instances on AMAZON EC2
Next Steps After the instance has been created you can easily add volumes which does not need a restart or add CPU or memory which will require a restart. Read moreCloud Related Tips Last Update: 8/17/2016

Viewing all articles
Browse latest Browse all 3160

Trending Articles