If a user is not authorized to connect to the database specified in the connection request, SQLException 04501 is raised.
If a user with readOnlyAccess attempts to write to a database, SQLException 08004 - connection refused is raised.