Open shennerf opened 1 year ago
I also have the same problem, all protocols are missing, any ideas?
I was able to get it to work by enabling what I could through the configuration manager, then going into the registry and manually enabling the protocols for the sqlserver entry (2019 developer). I wouldn't call it fixed as there seems to be missing settings to do it correctly through the config mgr, but the system does now work.
@shennerf Are you able to share the exact steps and registry keys you had to add/modify to get TCP/IP to work? I have the same issue but have so far been unable to figure out what in the registry needs to be modified.
@shennerf - that would be amazing as i'm in the same boat.
So, my install is SQLServer 2019 Developer, though I would expect this will work for all of them. Also - I am connecting to it via IP from another app on the same VM - I did not test connecting to it from a different machine. The entries are not fully correct - but it does work for me when I followed these steps:
Hope this helps
Thank you @shennerf – for me, with SQL Server 2022 Express, it was sufficient to set Enabled under _HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL16.SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp to 1 and TcpPort to 1433 under _HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL16.SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp\IPAll. (With some reservation for the fact that I did change settings back and forth, but I believe that in the end, these are the only ones that differ from the defaults.)
I did not find anything relevant at all in the SQL Server Configuration Manager to change (the mentioned configuration item was completely empty), but the registry changes turned out to be sufficient.
Obviously, for connections from outside of the virtual machine, the firewall also needs to be set to allow incoming connections to port 1433. And as remote connections with Windows Authentications may or may not work well, it might be necessary to allow SQL Server Authentication, too (under Security in Server Properties in SQL Server Management Studio).
Thanks, OttoG and shennerf! This was simple and did the trick for me running SQLServerExpress 2022 on Windows 11 Pro version 22H2 Arm.
Open regedit.exe
Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL16.SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp 2.1 Set DWORD Enabled value to 1
Did anyone succeed connecting via TCP to SQL Server 2022 Developer on Win11 ARM (running inside Parallels 19 on M2)? DB seems to be running fine, but I can't connect via TCP.
I looked everywhere (I think) and tried many things, but no success.
For starters, the darn thing doesn't even know on which operating system it's running:
Nothing in the configuration manager:
Remote conections are enabled:
Edited the "Enabled" value in registry, but no success:
Connection error:
SQLSTATE = 08001
Native Error Code = 258
[Microsoft][ODBC Driver 18 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to 10.211.55.5. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
Any help appreciated!
@aleks-f I have not tried the Developer edition, however it should work the same as Express. Have you tried following the above example. I only see a screenshot for step 2. The Enabled and TcpPort DWORDs are in 2 separate locations. If so did you restart the OS after? What does your connection string look like? It should be something like IPAddress,PORT example: localhost,1433
@joshuadavidmcgee thanks for replying.
The one registry setting seems to have been enough. The problem turned to be elsewhere, in two places:
on
by default:
[DRIVER={ODBC Driver 18 for SQL Server};UID=***;PWD=***;DATABASE=***;SERVER=10.211.55.5;PORT=1433;]
...
===========================
ODBC Diagnostic record #1:
===========================
SQLSTATE = 08001
Native Error Code = -1
[Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: [error:0A000086:SSL routines::certificate verify failed:self-signed certificate]
SQLSTATE = 08001 Native Error Code = -1 [Microsoft][ODBC Driver 18 for SQL Server]Client unable to establish connection. For solutions related to encryption errors, see https://go.microsoft.com/fwlink/?linkid=2226722
`Encrypt=no` fixed it:
Connected to [DRIVER={ODBC Driver 18 for SQL Server};UID=;PWD=;DATABASE=***;SERVER=10.211.55.5;PORT=1433;Encrypt=no]
jimm98y - I have used your scripts to try to install all versions except 2022 Express, and I have been unable to get TCPIP on 1433 to work. When researching - it looks like the registry entries for the instance are missing (I do see them on my Windows 10 Intel VM) - Have you seen this issue (Everything else seems to install correctly)?