尝试一下:
SELECT CASE SERVERPROPERTY('IsIntegratedSecurityOnly')
WHEN 1 THEN 'Windows Authentication'
WHEN 0 THEN 'Windows and SQL Server Authentication'
END as [Authentication Mode]
https://www.sqlserverlogexplorer.com/recognize-authentication-mode-in-sql-server/