PowerBuilder · Database exception
What does SQLDBCode 40532 (Azure SQL Login Server Mismatch) mean in PowerBuilder?
SQLCA.SQLDBCode returns 40532 with the message 'Cannot open server requested by the login. The login failed' when PowerBuilder connects to an Azure SQL Database and the login/authentication context does not match the target logical server name, including attempts to use modern Azure AD interactive authentication PowerBuilder's native driver support doesn't fully cover.
SQLCA.SQLDBCode returns 40532 with the message 'Cannot open server requested by the login. The login failed' when PowerBuilder connects to an Azure SQL Database and the login/authentication context does not match the target logical server name, including attempts to use modern Azure AD interactive authentication PowerBuilder's native driver support doesn't fully cover.
Confirm the DBParm connection string's server name exactly matches the Azure SQL logical server the login is scoped to, and fall back to SQL authentication or a supported DBParm auth mode instead of ActiveDirectoryInteractive, which PowerBuilder's classic drivers don't reliably support. Test the same credentials from a non-PowerBuilder client (sqlcmd/SSMS) to isolate whether the mismatch is server-side or connection-string-side.