Different ways to check your SQL Server(s) Authentication mode
Checking the Authentication mode using T-SQL:
- Using "xp_LoginConfig" extended Stored Procedure
1EXECMaster.dbo.xp_LoginConfig'login mode' - Using "SERVERPROPERTY" Function
1234SELECTCASESERVERPROPERTY('IsIntegratedSecurityOnly')WHEN1THEN'Windows Authentication mode'WHEN0THEN'SQL Server and Windows Authentication mode'ENDas[Authentication Mode] - Using Registry
12345678910DECLARE@ModeINTEXECmaster.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer',N'LoginMode', @ModeOUTPUTSELECTCASE@ModeWHEN1THEN'Windows Authentication mode'WHEN2THEN'SQL Server and Windows Authentication mode'ELSE'Not known'ENDas[Authentication Mode]
Checking the Authentication mode using SSMS:
- Right-Click on the Server
- Choose "Properties"
- Navigate to "Security" Page
- Check "Server Authentication" Section
No comments:
Post a Comment