Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot connect to RDS SQL Server Database using Management Studio

I created a SQL Server RDS Instance in AWS and it seems to be up and running, but if I try to connect to it using Management Studio I get this error: enter image description here

Here is the text of the error:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The wait operation timed out.) (Microsoft SQL Server, Error: 258)

I initially tried with the default security group that was created with the instance, but when that didn't work I created a new security group and modified the instance to use it.

Here you can see the details: enter image description here

I tried this connection setup to connect: Server Type: Database Engine Server Name: valuationdlsdev.ck1qvjqhglyg.us-west-2.rds.amazonaws.com,1433 Authentication: SQL Server Authentication Login: the Master User Login I created when creating the RDS Instance Password: the Master User Password I created when creating the RDS Instance

I was kinda at my wits end and so I changed the setting on the Security Group to All traffic just to see if that would work, so here are all the settings on the security group:enter image description here

At this point I'm wondering if port 1433 is not open, because I feel like I've tried everything. Could someone please help me.

Thanks.

like image 836
Lenka Avatar asked Jun 21 '17 17:06

Lenka


People also ask

How do I connect to the RDS database in SQL Server Management Studio?

Open the RDS console and choose Databases to display a list of your DB instances. Choose the SQL Server DB instance name to display its details. On the Connectivity & security tab, copy the endpoint. Note the port number.

Can't connect to RDS server?

Troubleshoot database level issues Be sure that you're using the correct user name and password to access the instance from your DB client. Be sure that the user has the database permissions to connect to the DB instance. Check for any resource throttling in Amazon RDS, such as CPU or memory contention.

What are some of the common causes why you Cannot connect to a DB instance on AWS?

When you can't connect to a DB instance, the following are common causes: Inbound rules – The access rules enforced by your local firewall and the IP addresses authorized to access your DB instance might not match. The problem is most likely the inbound rules in your security group.


1 Answers

Make sure it is publicly accessible, there is a radio button you have to check to make it publicly accessible.enter image description here

Also add MS SQL inbound rule in inbound tab.After making the change wait for sometime so that the settings are updated in the instance.

like image 79
Sushil Kumar Avatar answered Oct 08 '22 14:10

Sushil Kumar