Different ways to check your SQL Server(s) Authentication mode | SansSQL

Friday, March 23, 2012

Different ways to check your SQL Server(s) Authentication mode

Checking the Authentication mode using T-SQL:
  1. Using "xp_LoginConfig" extended Stored Procedure
    EXEC Master.dbo.xp_LoginConfig 'login mode'
    

  2. Using "SERVERPROPERTY" Function
    SELECT CASE SERVERPROPERTY('IsIntegratedSecurityOnly')   
    WHEN 1 THEN 'Windows Authentication mode'   
    WHEN 0 THEN 'SQL Server and Windows Authentication mode'   
    END as [Authentication Mode]  
    
    
  3. Using Registry
    DECLARE @Mode INT  
    EXEC master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', 
    N'Software\Microsoft\MSSQLServer\MSSQLServer',   
    N'LoginMode', @Mode OUTPUT  
    
    SELECT CASE @Mode    
    WHEN 1 THEN 'Windows Authentication mode'
    WHEN 2 THEN 'SQL Server and Windows Authentication mode'
    ELSE 'Not known'
    END as [Authentication Mode]  
    
Checking the Authentication mode using SSMS:
To check the Authentication mode using SSMS,
  1. Right-Click on the Server
  2. Choose "Properties"
  3. Navigate to "Security" Page
  4. Check "Server Authentication" Section

4 comments:

yangamuniprasad said...

Thank you sandesh, this is very useful.. post..

Huongkvb said...

Mua vé máy bay tại Aivivu, tham khảo

vé máy bay đi Mỹ giá rẻ 2021

vé máy bay từ texas về việt nam

giá vé máy bay từ Vancouver về việt nam

mở chuyến bay từ nhật về việt nam

mua ve may bay tu han quoc ve viet nam

Vé máy bay từ Đài Loan về Việt Nam

khách sạn cách ly hà nội

vé máy bay chuyên gia sang Việt Nam

Matthew L.Lewis said...

Jasmine Waltz is a delightful entertainer and model from America. The defining moment in her profession was her appearance on Big name Older sibling in 2014 and 17 which is a well-known English unscripted TV drama. In this show, she plays filled the role in season 13 and season 19 making a colossal fan following because of her entrancing and astounding acting. Let's check out Jasmine Waltz Net Worth at this link.

Murphy said...

But a samurai is like a spy. looking for information or working secretly which will not reveal the identity of the slot game pgslot เว็บตรง

Post a Comment

Ads