i have a SQL Server Connection that is established at the beginning. If no connection is established, an error message appears:
Connect_db: 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 haven’t found a real exception for this. Do you know how I can catch the error with try catch?