SSRS not connecting to Azure SQL - sql-server

We have our SSRS servers, on-premise. When trying to connect to the Azure SQL DB, it is throwing the following error when not using the port number 1433:
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)
When using the port 1433, the same error is coming only instead of Named Pipes it says TCP.
What to do? I have already added the SSRS IP to the Azure SQL DB firewall and have checked the connection string is also perfect. Since Auidting is on, we are also using 'secure' in the connection URL of the server.

Related

SQL Server database engine remote connection

I have a PC with SQL Server installed.
I have created a VB.NET application to connect to SQL Server.
When I connect the SQL Server from development machine I can access the remote SQL Server database easily without any problem.
But from the client machine when I try to connect the same SQL Server I get an 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance specified)
Firewall is disabled
TCP/IP is enabled
Port 1433 is defined in the same way as on the development PC
I have tried with Ip: port and IP only to access the remote SQL Server database server.

Unable to connect SQL Server to an Excel sheet

I am trying to connect SQL Server to an Excel sheet using get data source. I have two systems: System A has SQL Server installed, and I'm trying to connect to System B using an Excel sheet.
When I provide the details as
Server: 10.100.84.224\DOHVP1C00JIRA01 and Database: jiradb1
Click on "Ok", I get an error
Unable to Connect
Details: "Microsoft SQL: 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)
I have checked all the connection which are configured and looks fine like port numbers and I followed this link too
SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified
Note: if we want to access System B is VPN secure and we have opened for those too.
Please check if the TCP/IP is enabled in SQL Server Configuration Manager for the server end.
Besides, please make sure that the SQL Server is allowed remote connection.
And you use the instance name to connect the server, please ensure that the SQL Server Browser service is started.
By the way, you can ping the IP address to check if the network is we

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

In my remote server I log in SQL Server with SQL Server Management Studio. It works.
But on my PC when I try to log in I get an error. I add port to server name but I still get the same error. My TCP/IP is enabled. Port is enabled
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 connected host has failed to respond.) (.Net SqlClient Data Provider)

Connecting to SQL server on the same machine using the server's IP

I am using SQL SERVER 2012. I have set up my web server and SQL SERVER. Remote connections (using the server IP address) from other machines are working perfectly.
When I connect to SQL server on the same server using localhost, internal ip and machine name, these are all working flawlessly.
However, when I try to make a connection to SQL server on the same server, and using the server's IP as the server name, I get the 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)"
What can be the reason for this?
Are there any settings that can be changed in order for this to work?
Thank you.

Remote login to SQL Server Express 2008

I am remotely accessing SQL Server Express 2008.
I have turned on service "SQL Server Browser"
I have turned on service "SQL Server (SQLExpress)"
I have enabled TCP/IP and set dynamic ports to blank and tcp port to 1433 in properties
I can connect localy(using ip) so my credentials are correct.
I have a exceptions record in my windows firewall setting port 1433 as open.
I have performed a system reboot making all services are still turned on.
After i try and connect via a remote computer I get this error.
Cannot connect to XXX.XXX.XXX.XX
===================================
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) (.Net SqlClient Data Provider)
------------------------------
Error Number: 3
Severity: 20
State: 0
your ideas and solutions will be greatly appreciated.
KJ
Edit
Hi and thanks for the quick responses. At present there is no connection string. I am trying to connect using: SQL Server Management Studio 2008
Edit 2
Hey Nick.
I am connecting using SERVERNAME\SQLEXPRESS I turned off windows firewall off and still there was no joy.
I tried adding the port like you suggested:
===================================
Cannot connect to XXX.XXX.XXX.XX, 1433.
===================================
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 connection could be made because the target machine actively refused it.) (.Net SqlClient Data Provider)`
please show us the connection string in you are using to connect to the server with.
If your connecting using the instance name. eg. SERVERNAME\SQLEXPRESS then you will need to open up your firewall for the SQL Browser service i.e. UDP port 1434.
Alternatively, try using the port in your connection string and forget the instance name. Eg. in SSMS you can connect using SERVERNAME,1433 where 1433 is the port you've specified sql server listens to.
You say you have configured TCP/IP but your connection error message says this:
provider: Named Pipes Provider
Update
It appears you have one protocol enabled on Sql Express and are trying to connect with another via Sql management Studio. You need to connect with the TCP provider or enable Named Pipes on your Sql Server Express Configuration.
To connect with TCP, in Sql Management Studio click the Options button on the login page. This will take you to a Connection Properties page where you can select the provider. The Network protocol is probably set to default or Named Pipes at the moment and it needs to be changed to TCP.
Alternatively, in Sql Server Configuration Manager, enable Named Pipes in Protocols for Sql Express.

Resources