尝试一下:
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/
要更改设置,您需要更改注册表,这可以在MS SQL中使用:
USE [master]
GO
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2
GO
如注释中所述,在UI中进行更改,然后“对新查询窗口执行脚本操作”也会为您提供此答案。