SQL Server connection from Excel - sql-server

I am trying to connect to a SQL Server 2016 database from Excel (Office 365).
First of all :
I can ping the SQL Server from my PC
I can telnet SQL Server 1433
I can connect to the SQL Server with a SQL Server account
I got the credential popup when I connect from Excel (tried with domain account and SQL Server account).
There is no firewall restriction between client and server.
But finally I got this error message:
Where should I check ?

Well, i'm using IP adress instead of server name and it is working. So it should be a DNS issue.

Related

SQL Server has lost tcp/ip connectivity, works locally

An SQL Server install on a VM was stopped incorrectly this morning. When brought back up, it communicates normally on the local machine. It no longer works on TCP/IP. Attempts to communicate with the server from SSMS on a differnt machine result in
A network-related or instance-specific error occured while establishing a
connection to SQL Server. The server was not found or is not accessible.
Very that the instance name is correct and that the 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 1326)
The user name or password is incorrect
The username and password work fine when they are used locally. Have tested Windows Auth locally, sql user remotely (we don't have a domain)
In SQL Server Configuration Manager > Sql Server Network Configuration > Protocols for MSSQLServer > TCP/IP > IP Addresses everything appears correctly configured. The IPv6 IPv4 addresses are correct, and IPAll has the correct port (default 1433)
The server can ping multiple hosts on the network. They can ping it back. It's only a single non-routeable subnet. 192.168.0.*
The name of the pc matches the name of the sql server from SELECT ##SERVERNAME
The server version is 10.50.6000 which maps to SQL Server 2008 R2
First of all 1433 Port allow in Firewall (Inbound/Outbound rule)
After then try login with
ServerName: IPAddress\InstanceName,1433
Authentication : SQL Server Authentication

How to connect remotely to a SQL Server 2012 database that resides on a Godaddy Windows VPS, I am using ssms for connecting remotely

I am using SSMS to connect to a SQL Server 2012 database that resides on my Godaddy VPS. I'm unable to connect from SSMS, but I can connect normally from inside the domain.
I have opened port 1433 for TCP connections through RDP (IPAll). I have restarted SQL Server also. But am not sure whether my Windows Server machine allows inbound connection to 1433.
On SSMS login I am using
server name as ip-address:1433
authentication as SQL Server authentication
followed by username, password
But I'm unable to connect.

Creating and connecting to a new AWS RDS SQL Server instance

I cannot create a simple new SQL Server RDS instance and connect to it. I've provided screenshots of the configurations I have used below:
RDS MS SQL Server Configuration Step 1
Security Group Settings
DB Instance Settings
Error when attempting to connect via SSMS 2017 without port
Error when attempting to connect via SSMS 2017 with port
From the above as I understand it my security group is set up correctly (My IP should be able to connect via SQL Server authentication via port 1433). Without providing a port in SSMS 2017 I get a "Named Pipes Provider" error and when I do provide the 1433 port (testdb.cjkirvd4vbhk.us-west-2.rds.amazonaws.com,1433) I get a timeout error. What am I doing wrong? I just want to be able to create a SQL Server RDS instance and connect to it.

Not able to connect to SQL Server Management Studio

I am trying to connect to SQL Server Management Studio with Azure server, but an error happens:
A network related or instance specific error occurred while establishing a connection to SQL Server
I am using my credentials too.
server name : faena4vikq.database.windows.net
username : "Myusername"
password : "Mypassword"
I have also added my IP address in Azure server configuration panel.
My services are also running.
In Azure database connection string is also showing same :
Server=tcp:faena4vikq.database.windows.net,1433;Database=mjdData;User ID=mjduser#faena4vikq;Password={your_password_here};Trusted_Connection=False;Encrypt=True;Connection Timeout=30;
What do I need to check else?
Is that your real server name? It seems that is does not exist.
Thanks,
Mihaela

Can connect to SQL Server 2012 but not 2008 r2

I'm not a full-stacker, so forgive me in advance.
I'm trying to connect to a SQL Server 2008 R2 database from a Linux based server (via PHP mssql_connect). I am unable to do so.
The Error we get is: Connection timed out.
We are able to successfully connect to the SQL Server 2008 r2 from a Windows based server using sqlrv.
I'm able to successfully connect to a SQL Server 2012 database (hosted on Arvixe).
We have FreeTDS installed on our server. The mssql module installed and the database credentials added to our freetds.conf -- but still unable to connect.
We've also been whitelisted to access the database.
Is there anything we are missing? Your help is greatly appreciated.
There was a missing IP address from the whitelist. The IP address of the server AND the website needed to be whitelisted.
Also, these IP addresses needed to be allowed to make a remote connection over port 1433 to the database we were attempting to connect to.

Resources