Unable to connect to SQL Server during Sharepoint AutoSPInstall - sql-server

I'm trying to install Sharepoint using autospinstall, however it keeps failing
Testing access to SQL server/instance/alias: 192.168.1.224\MSSQLSERVER
Trying to connect to '192.168.1.224\MSSQLSERVER'
Using connection string 'Server=192.168.1.224\MSSQLSERVER;Integrated Security=SSPI;'...Failed
WARNING: Connection Error. Check server name, port, firewall.
I've tried this with ServerName, ServerName\Instance, IP Address, IP Address\Instance
Firewall's are turned off on both the sharepoint server and SQL server
I'm able to ping the SQL server from the Sharepoint server, I've also installed SQL Server Management Studio on the Sharepoint server which is able to connect to the target SQL server
However when I try to Telnet 192.168.1.224 1433 it just goes to a blank screen
Checking the SQL server
Netstat -ano I can only see a Listener for 0.0.0.0:1433
Netstat -ano | findstr PID
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 4020
TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 4020
TCP 192.168.1.224:1433 192.168.1.223:61026 ESTABLISHED 4020 (Sharepoint Server)
TCP [::]:1433 [::]:0 LISTENING 4020
TCP [::1]:1434 [::]:0 LISTENING 4020
SQL Configuration manager \ SQL Server Network Configuration \ Protocols for MSSQLSERVER
TCP/IP: Enabled
Keep Alive: 30000
Listen All: Yes
Addresses
IP1
Active: Yes
Enabled: No
Address: 192.168.1.224
TCP Port: 1433
IP2
Active: Yes
Enabled: No
IP Address: ::1
TCP Port: 1433
IP3
Active: Yes
Enabled: No
IP Address: 127.0.0.1
TCP Port: 1433
IPAll
TCP Port: 1433

Related

SQL Express 2019 remote access doesn't work

remote connection on
sql server auth on
tcp ip on
tcp ip on2
tcp ip on3
tcp ip on4
firewall on
I also have done port fowarding too.
When I try to connect sql express through public ip, it never connects.
When I checked 1435 is open or not, it is closed.
My mysql remote access works perfectly though...

How can I use a static port to listen on localhost with SQL Server 2019 Express?

I want to connect to SQL Server Express on localhost using the default static port, 1433, instead of dynamic ports. I want to use both IPv4 and IPv6 to connect, so I want to be able to connect both with 127.0.0.1 and [::1].
I've managed to configure SQL Server Express to listen at port 1433 on 0.0.0.0 via SQL Server Configuration Manager but I am not still not able to make SQL Server listen at port 1433 on local interface [::1] and 127.0.0.1.
Any ideas?
0.0.0.0 called "IPALL" in the SQL Server Configuration Manager causes the SQL Instance to listen on that port on all current and future IP addresses, including the IP4 and IP6 loopback addresses.
If you want SQL Server to listen only on the loopback addresses, disable "Listen All" for TCP/IP in the Configuration manager and enable and configure the two loopback ip addresses seperately.

Can not connect remotely to a second instance of SQL Server 2016

In a server I have 2 instances, the first that is the default called SQLCompart on TCP port 1433 and the second called AISLANTES on TCP port 1435.
When I try to connect remotely to SQLCOMPART it works successfully, but just with the ip (it doesn't connect with named instance <IP>\<INSTANCE>).
So the problem here is that I can't connect remotely to AISLANTES.
I am trying with <IP>, <PORT> also with <IP>\<INSTANCE> and with <IP>\<INSTANCE>, <PORT>
The firewall inbound rule for tcp port 1435 is enabled.
What am I missing?
SQL Server Configuration Manager
SQL Server Configuration Manager TCP/IP properties
this is the error that i get
SQL SERVER MANAGEMENT STUDIO
SQLCMD
Possible reasons:
Port was changed, but instance was not restarted
Multiple firewalls and port 1435 is not opened on all of them
TCP for a second instance not enabled at all
Consider to check your latest SQL Server log and find something like:
2018-04-09 18:53:11.95 spid11s Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\MSSQLSERVER ].
2018-04-09 18:53:11.95 spid11s Server local connection provider is ready to accept connection on [ \\.\pipe\sql\query ].
2018-04-09 18:53:11.97 Server Server is listening on [ ::1 <ipv6> 1434].
2018-04-09 18:53:11.97 Server Server is listening on [ 127.0.0.1 <ipv4> 1434].
So you will know for sure on which port SQL Server listens for incoming connections
p.s. if SQL instance installed on domain controller, it cannot use NETWORK_SERVICE as an account

Identifying the IP,PORT and Instance of a SQL Server Instance

I am trying to connect to SQL server instance in a remote system(a VPN has been set up between my machine and the server). The IP address I am supposed to connect to is 192.168.1.X, which I can ping from my machine.
When I RDP into the server hosting the SQL server and run in Sql server studio:
USE master GO xp_readerrorlog 0, 1, N'Server is listening on', 'any', NULL, NULL, N'asc' GO
I get the following:
LogDate ProcessInfo Text
2016-03-05 12:21:37.630 Server Server is listening on [ 'any' 12345],
2016-03-05 12:21:37.630 Server Server is listening on [ 'any' 12345].
Question 1: Does this mean that the server is listening to any queries in ipv6 and ipv4 IP for the port 12345?
Question 2: When I check the SQL TCP/IP setting in the host server, I see that the ipv6 IP is 127.0.0.Y. Should it not be 192.168.1.X? How do I find out what it the IP I am supposed to connect to?
TCP Dynamic ports
RDP into the server, and then run the SQL Configuration Manager. Open up SQL Native Client 11.0 Configuration (or whatever version it is if not 11) and select Client Protocols under it. In the right-hand pan el, select TCP/IP, right-click it and select Properties.
You can see that it shows the port it's ljstening on (1433 here, which is the default). If the port is not 1433 you can sepcify it in the connection string as Data Source=servername,portnumber e.g.Data Source=MyServerName,12345 (if 12345 is the port).
BTW, check that TCP/IP is enabled: if it's not then the port doesn't really matter!

What does a client need to connect remotely to an SQL Server?

i have set up a Microsoft SQL Server 2008 R2 Express on my home computer. My home computer has Windows 7 and is behind a router. I configured it i think ok, because i can connect to him from work through management studio. Means - i opened all necessary ports, i configured SQL to accept connections on TCP. I have also on my router set up DynDNS and i connect through my DNS name and it works.
I use also Microsoft PortQueryUI [ http://www.microsoft.com/download/en/details.aspx?id=24009 ] to test if the server is visible and from my work computer and it is visible. My PortQueryUI output at work is ok (attached bloew) but people from other networks cannot connect to my server.They have in the test to port 1434 UDP (big bold) an error code 0x00000002 where i have it correct - 0x00000000.
What is the reason, is there something that needs to be done on their computers? Maybe their network is blocking something?
My PortQueryUI output from work:
=============================================
Starting portqry.exe -n myhome.dyndns.net -e 1434 -p UDP ...
Querying target system called:
myhome.dyndns.net
Attempting to resolve name to IP address...
Name resolved to 83.xxx.xxx.xxx
querying...
UDP port 1434 (ms-sql-m service): LISTENING or FILTERED
Sending SQL Server query to UDP port 1434...
Server's response:
ServerName ROBERT-KOMPUTER
InstanceName SQL2008R2
IsClustered No
Version 10.50.1600.1
tcp 1433
np \\ROBERT-KOMPUTER\pipe\MSSQL$SQL2008R2\sql\query
==== End of SQL Server query response ====
UDP port 1434 is LISTENING
portqry.exe -n myhome.dyndns.net -e 1434 -p UDP exits with return code 0x00000000.
=============================================
Starting portqry.exe -n myhome.dyndns.net -e 1433 -p TCP ...
Querying target system called:
myhome.dyndns.net
Attempting to resolve name to IP address...
Name resolved to 83.xxx.xxx.xxx
querying...
TCP port 1433 (ms-sql-s service): LISTENING
portqry.exe -n myhome.dyndns.net -e 1433 -p TCP exits with return code 0x00000000.
Make sure port 1433 is open on your firewall where SQL is, you should probably put some sort of IP range/scope on that too for security.
You need to set your database to Accept Remote Connections in the DB properties.
You need to setup a username and password and give it access to the database so your remote connection recognizes it.
Here's an example of allowing the connection:
http://blogs.msdn.com/b/walzenbach/archive/2010/04/14/how-to-enable-remote-connections-in-sql-server-2008.aspx
Here's an example of connecting:
http://www.youtube.com/watch?v=hT9p_FPt720
I had the same problem but I had already setup open ports on 1433 on the firewall. The solution for me was simple on SQL 2012:
Goto "Sql Server Connection Manager"
Drop down SQL server network configuration
Protocols for MSSQLSERVER > Right click TCIP/IP
on every "TCP Port" entered 1433 or whatever port you wish
done
I have a non-default named instance. So I`ve had to enable and start the SQL Server Browser service on services.msc
Make sure to check Microsoft's troubleshooting below:
https://learn.microsoft.com/en-us/archive/blogs/sql_protocols/steps-to-troubleshoot-sql-connectivity-issues

Resources