All the reasons I can't access an instance of SQL 2005 - sql-server-2005

I've installed an instance of SQL 2005 Express on <computername>/SQLEXPRESS. There is only once instance installed. I've allowed remote connections, turned on SQL authentication, enabled TCP/IP, Named Pipes and VIA but I still can't access the database from another computer. I keep getting:
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: SQL Network
Interfaces, error: 26 - Error Locating
Server/Instance Specified)
What else can I look for? I'm sure my code is correct as it was used to connect to this same system prior to it being wiped. I'm pretty confident the connection string is correct as well:
Server=<computername>\SQLEXPRESS;User Id=<username>;Password=<password>;
There's also no firewalls standing between the two systems. They're on the same network segment and Windows Firewall has been shut off completely.

Is the SQL Server Browser running on the machine? For named instances, like \SQLExpress, the SQL Browser allows client machines to identify which port to connect to.
By default, only the default instance runs on TCP 1433. If the client can't connect on the default port, it queries the SQL Browser at UDP 1434 to locate the correct port to use for a given named instance.

Related

Can I use azure hybrid sql connection on a named instance?

Can't find a definitive answer, or get it working. This site says "To use an on-premises SQL Server or SQL Server Express database with a hybrid connection, TCP/IP needs to be enabled on a static port. Default instances on SQL Server use static port 1433, whereas named instances do not."
http://azure.microsoft.com/en-us/documentation/articles/web-sites-hybrid-connection-connect-on-premises-sql-server/
My installation of a named instance IS on a static port (1555), as outlined here:
http://blogs.msdn.com/b/arvindsh/archive/2012/09/08/how-to-assign-a-static-port-to-a-sql-server-named-instance-and-avoid-a-common-pitfall.aspx
I have the hybrid connection configured in the azure portal with port 1555 and it shows as "Instance Connected".
In my app's connection string, I am specifying the instance name and port just as if the app was on-premise, which does work when run locally. (server\instance, 1555)
I opened all the appropriate firewall ports, but when running the app from azure, I'm getting the standard connection 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 - No such host is known.)
So is a named instance on a non-standard port supported for hybrid connections, and if so, is the connection string the standard format of : server\instanceName,port#
Thanks
This is an old post, so presumably not relevant any more. But in case anyone else finds it useful...
Yes you can use a named instance on a non-standard port for Hybrid connections, I've got a couple of connections like this set-up. For reference, the connection string needs to be in the format of
Driver={SQL Server};Server=SERVER_NAME.DOMAIN.com\INSTANCE,PORT;Database=DATABASE_NAME;UID=USERNAME;PWD=PASSWORD
I found that it didn't work (for me) unless I fully qualified the server name with the domain too

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 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.

Unable to make remote connections to SQL Server 2008 Express

I have a SQL Server instance installed on my VPS I've followed all the usual steps to connect remotely including:
Allowing Remote Connections
Enabling TCP/IP + adding port 1433 to the IPAll range
Creating a Firewall rule to enable the connection
Still no luck though I always get the error message:
A network-related or instance-specific error occurred while establishing a connection to SQL Server
Is there something I missed?
you must check that also all the following
check the protocol named pipes is enabled
the IP port for named pipes is enabled (usually port# 445)
the SQL Server Browser service is started
Turns outt he problem was that I hadn't allowed the SQL Server Browser through the Windows Firewall on Windows Server 2008.
So to fix:
Add an exception for the SQL Server Browser. (udp port 1434)

Cannot connect to the sql server

i am having management stdio 2005 in my machine and im tring to connect to sql server 2008
i'm receiving the following message as the inner exception .
{"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)"}
can anyone please help
thanks,
vijay.
The protocol you're using (Named Pipes) is only valid if you're connecting to the local machine. If you're connecting to a remote machine, you need to enable the TCP protocol.
Other things to check:
Is your connection string correct? Server name spelled correctly?
Is any firewall allowing TCP traffic? The default port is 1433 for a basic setup.
Open up the SQL Server Configuration Manager
Expand the node "SQL Server Network Configuration"
Click on protocols node
Right click on "Named Pipes" -> Enable
Restart the SQL Server service
Make sure the database is configured to allow remote connections.
If using an instance, ensure you're pointing at that instance in your connectionstring.