Error code

SQL Server 4060

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

What it means

cannot open database requested in login — database does not exist or access denied.

How to fix it

  1. Verify the database name in the connection string against sys.databases.
  2. Grant the login CONNECT permission on the correct database.
  3. Ensure the database is online and not in RESTORING or OFFLINE state.

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