Script finding if anyone login to the backend database using ODBC connection

Hello,
I am new to PowerShell and I would like to know if it is possible to have a power shell script that I can use to check if anyone access to my backend database on my SQL Server using the ODBC connection?
Thank you for all of the help,
Minh

Hi, welcome to the forum :wave:

Have a look at dbatools and the Get-DbaConnection cmdlet.