Connection to SQL 2008 R2 - sql

i have a windows server 2008 set up as a database server, i used to have MS SQL 2005 installed on it, due to some client changes i installed SQL 2008 R2 along with the 2005, the R2 is with a named instance. when i tried to connect an application to the 2008 R2 database, i get:
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 - A connection attempt failed because the connected
party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond.)
i am sure of the ports as i checked the named instance configuration on the DB server, i also telnet the dynamic IP from the application server and it is going through. i also tried to connect a copy of the application from a demo server i have with the same configuration as the application server and it was successful. from the application server it is not, any suggestions?

Follow the steps in below link to get solution
[http://relyonsoft.com/techsupport/?p=1045][1]

Related

remote connecting to sql server instance

When i try to remote connecto to my sql server i get this eror;
ADDITIONAL INFORMATION: 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: Named Pipes Provider, error: 40 -
Could not open a connection to SQL Server)
(Microsoft SQL Server, Error: 53)`
My sql server is running on my windows 8.1 single language edition machine. I also have iis server running on it. and i can view the page from remote machine with no problem. Here are the list that i have done;
I opened port 1433 and 1434 and forwarded them to my machine.
I closed all firewalls.
SQL browser is running
İ can ping my ip.
I can connect the sql server from office with just writing the ip 192.168.2.18. My instance name is . However i can not connect it from outside of the office. What is i am doing wrong what must be my server name when connecting to the instance . Can i connect it by just ip without writing any instance name?

can't connect to Sql Sever Management Express 2012

I installed Sql Sever Management Express 2012 , but when i try to connect in Sql management studio environment , i have this error .
ADDITIONAL INFORMATION:
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
The system cannot find the file specified
BUTTONS:
OK
and in during installation i dont have option for select cluster !!
this is my SQL Server Configuration Manager , my sql server service is empty ...
And when get Remove a Failover Cluster Node , this error happened .
http://oi57.tinypic.com/2lrvat.jpg
when i enter SQLEXPRESS , i have error
Cannot connect to SQLEXPRESS. ------------------------------
ADDITIONAL INFORMATION: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
Viewing your linked images, is clear that you haven't installed or installed unsuccesfully,
Sql Server Express 2012
In your Configuration Server Manager there is no instancse of SQL Server so it is normal not been able to connect.
Q: Sine there is no instance,when you Launch Management Studio what instance name do you select when you try to connect???
You should properly install SQL Server Express 2012
EDIT :
First Check if you have any version of SQL Server or SQL Server Express installed on your machine...(this can be done by looking through installed programs from control panel)
In order to Install and configure SQL Express 2008 follow this steps
Take in mind that you have to use SQL Management Studio 2008 later on (if you have 2008 server)
Hope it helps...

Can Not connect to Remote SQL server named instance with port

Hi All We have a server where we have sql server 2008 as well as SQL server 2005 hosted on port 1444. Using SSMS, I am able to connect to 2008 instance without any problem. But when I try to connect to 2005 instance using following connection settings.
DEVDB1\SQL_2005,1444
SQL server authentication user name and password.
I get following 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 - A Connection attempt failed because the connected
party did not properly respond after a period of time, or established
connection failed because connection host has failed to
respond)(Microsoft SQL Server, Error: 10060)"
I am able to connect to another instance on the same server. but not this.
NOTE: My colleagues are able to connect to this sql server with the same settings. It just does not work from my machine. Me and all my colleagues are working on VPN and have same machine configuration.
Is there any setting that I need to do/check to get successfully connected?
My VPN user profile was restricting access to this perticular port. Once my VPN user profile is matched with those who were able to access, the problem resolved.

Can't connect remotely to database on SQL Server 2005

I am new to managing servers but I have just been given full access to set up an MS SQL Database on win server 2003. I have created a Database successfully and can connect locally (via remote desktop server)
Problem is I can't connect to the database from my personal computer (remotely, via ms sql server management studio). I have followed several tutorials such as: http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
The error I am receiving is:
Cannot connect to 'servername'
ADDITIONAL INFORMATION:
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: Named Pipes
Provider, error: 40 - Could not open a
connection to SQL Server) (Microsoft
SQL Server, Error: 53)
Any help will be great, thanks!
"SQL Server is configured to allow remote connections"
You need to enable remote tcp/ip connections in sql surface area configuration. It's new in 2005 and then dropped in 2008.
If that doesn't work, you either have a network issue are are perhaps giving the wrong name - maybe you installed a named instance?

SQL Server 2005 Connectivity problem from .NET

I'm unable to connect to SQL Server 2005 from .NET. I'm getting 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ". The strange thing is, I'm able to connect through management studio using the same credentials (SQL Server authentication).
My connection string is: Server=servername;User ID=xxx;Password=xxx
I'm using the 2005 native client.
Also, I just realized Management Studio cannot connect if using named pipes, only TCP/IP.
What tells ADO.NET which protocol to use?
SQL Server 2005 may not be allowing inbound named pipes connections. This can be configured differently for the older SQL Server protocol and for the 2005+ Native Client. Check the SQL Server Configuration Manager on your database server.
(And yes, the Management Studio would still be able to connect to the remote database if named pipes were disallowed.)