All Products
Search
Document Center

ApsaraDB RDS:What do I do if the "Logon failed for login 'user' due to trigger execution" error message is displayed when I connect to my ApsaraDB RDS for SQL Server instance?

Last Updated:Aug 07, 2024

Problem description

The Logon failed for login 'user' due to trigger execution error message is displayed during the connection to an ApsaraDB RDS for SQL Server instance.

Causes

The number of connections to the RDS instance reaches the upper limit.

Solution

Note

The solution is suitable only for RDS instances that run SQL Server 2008 R2 and use local disks.

  1. Connect to the RDS instance from a client. For more information, see Connect to an ApsaraDB RDS for SQL Server instance.

  2. Check whether the number of connections reaches the upper limit. You can execute the following SQL statement to query the number of connections:

    SELECT * FROM SYS.SYSPROCESSES WHERE SPID > 50 AND LOGINAME NOT IN ('SA', 'AURORA');
    Note

    If a large number of connections are established, you can resolve the issue based on the instructions provided in What do I do if the number of connections to an ApsaraDB RDS for MySQL instance reaches the upper limit?

  3. If the number of connections does not reach the upper limit, execute the following SQL statement to query the number of processes and check whether a blocking issue exists:

    SELECT * FROM SYS.SYSPROCESSES
    Note

    If a blocking issue exists, you can resolve the issue based on the instructions provided in What do I do if requests are blocked on an ApsaraDB RDS for SQL Server instance?

References