Número máximo de conexiones externas simultáneas y N.º máximo de sesiones simultáneas

dev sistemac34 0 Reputation points
2023-04-21T15:48:16.5366667+00:00

Hola, necesito su ayuda comunidad, Estoy confundido con la diferencia entre sesiones y conexiones en Microsoft Azure Database, debido a que en la pagina de microsoft se muestra de esta formaCaptura

les pido su ayuda para poder entender la diferencia, y si podrian compartirme un script para ver las sesiones asociadas a una conexion Translation: Hi, I need your help community, I am confused with the difference between sessions and connections in Microsoft Azure Database, because in the microsoft page it is shown this way (see image). I ask for your help to understand the difference, and if you could share a script to see the sessions associated with a connection.

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 34,686 Reputation points MVP Volunteer Moderator
    2023-04-21T17:24:56.68+00:00

    Connection represents connection to the Azure SQL Database over a network. A session represents a user process within the Azure SQL Database. A connection may be associated to more then one session. The following query shows all connections and related sessions:

    SELECT c.session_id, s.status, c.connection_id
    FROM sys.dm_exec_connections AS c
    JOIN sys.dm_exec_sessions AS s ON c.session_id = s.session_id
    WHERE c.session_id <> @@SPID
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.