My Visual Studio is unable to connect to SQL Server

Error_401 86 Reputation points
2021-05-07T05:52:42.773+00:00

Hi,

I'm not a developer so I have very less knowledge on coding.
I have configured SQL Cluster with the following COnfiguration -

Cluster 2 - 10.0.0.7
Cluster 11 - 10.0.0.8

94644-image.png

SQL Role Server -10.0.0.10

I also have two iSCSI configured in the failover manager -

94610-image.png

For now the SQL Role is assigned to Cluster11 from the screenshot, so I can ping 10.0.010 from Cluster11 and not from Cluster2.

I also have a webserver - 10.0.0.13 where I have installed Visual Studio 2019 but I cannot connect to 10.0.0.10, the ping also fails -

94588-image.png

I'm a complete newbie in this, please guide me on how to fix this and guide me accordingly.

Please let me know if you need more information or if there is something I'm missing or did not configured correctly.

Thanks

Windows for business Windows Server Storage high availability Clustering and high availability
SQL Server Other
{count} votes

Accepted answer
  1. Cris Zhan-MSFT 6,661 Reputation points
    2021-05-10T05:27:58.3+00:00

    Hi,

    >I have already disabled firewalls on all the devices and since all these machines are VMs on Azure

    Some people encountered the same problem when using FCI on Azure VMs. You may need to configure Azure Load Balancer for failover cluster instance.

    More details please refer to the following post:
    https://community.spiceworks.com/topic/1970401-accessing-sql-cluster-ip-azure-vnet
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d0b8d906-b5f3-4903-a711-437fa696cc3c/errors-with-ping-and-sql-connection-azurevm-two-nodes-cluster?forum=WAVirtualMachinesforWindows
    https://www.sqlservercentral.com/forums/topic/sql-2019-fci-in-azure-unable-to-connect-on-secondary-node

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Alex Bykovskyi 2,241 Reputation points
    2021-05-07T20:03:02.41+00:00

    Hey,

    Check firewall on your cluster nodes. For the testing purposes disable it on Cluster11 node and check if you can ping. In addition, the following guide might help:
    https://www.starwindsoftware.com/resource-library/starwind-virtual-san-installing-and-configuring-sql-server-2019-tp-failover-cluster-instance-on-windows-server-2016/

    Cheers,

    Alex Bykovskyi

    StarWind Software

    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.