[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Unable to connect to SQL server 2008 R2 over the network

Posted on 2013-10-23
4
Medium Priority
?
1,056 Views
Last Modified: 2013-10-23
Server Config
-----------------
Server 2008 R2
SQL Server 2008 R2
SQL Server Configuration  Manager:
1) Protocols for MSSQLSERVER (TCP/IP Enabled)
2) IP10: IP Address 127.0.0.1, TCP PORT 1433
3) IP ALL: TCP PORT 1433

Firewall: MSSQL is listed 2 times:
1) Local: Any - 3306, Remote: 200.101.47.0/24
1) Local: Any - 1433, 1434, Remote: 200.101.47.0/24

ServerIP: svrParts-01 (Hostname), 192.168.1.5, 255.255.255.0, 192.168.1.1(Gateway), 192.168.1.2(DNS)

My System IP: systemo5 (Hostname),  192.168.1.34, 255.255.255.0, 192.168.1.1(Gateway), 192.168.1.2(DNS)

Hi,

I am trying to connect to a SQL Server 2008 R2 DB from my local system on the same network but not able to.  I can log into the SQL server using windows authentication or SQL Server Authentication (sa account ) no problem.  I

I tried to connect to my the server using SQL using a db connection in Visual studio but no luck:
Data source: Microsoft SQL Server (SQL Cliet)
Server Name: svrParts-01 or 192.168.1.5:1433
Use SQL Authetication: sa and password
connect to database: dbParts
Test Connection message: The server was not found or was not accessible. Verify instance name is correct and that SQL server is configured to allow remote connections. (provider: SQL Network Interfaces, error 25 - Connection string is not valid).

or

An error has occurred while establishing a connection to the server when connecting to SQL server 2005, this failure may be caused by the fact that under default settings SQL server does not allow remote connection. ( provider: Named Pipes Provider, error: 40 – could not open a connection to SQL server. )

Thanks in advance!
0
Comment
Question by:cesemj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 39

Accepted Solution

by:
Aaron Tomosky earned 2000 total points
ID: 39596118
The firewall looks odd. Turn off the firewall just to test. If that works, put the right ip addresses in there.
0
 

Author Comment

by:cesemj
ID: 39596157
You were right but how do I find which error is causing the problem,
0
 

Author Comment

by:cesemj
ID: 39596159
I'm sorry, how do  I find which rule is causing the error
0
 

Author Comment

by:cesemj
ID: 39596211
Thanks for your help, I found the location where to change the ip.  :)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question