Error code

SQL Server 40615

SQL SERVER40615
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

cannot open server requested by the login — Azure SQL firewall rule missing.

How to fix it

  1. Add the client IP address to the Azure SQL firewall rules in the Azure portal or with sp_set_firewall_rule.
  2. Use the Allow Azure Services option for connections from other Azure resources.
  3. Verify the correct server name (e.g. server.database.windows.net) is in the connection string.

Not affiliated with SQL Server. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.