Query to find current authentication mode

  • This is probably a newbie question but what system stored procedure or dmv will return what current authentication mode is active on a given server?

  • It's stored in the Windows registry. Here's an article on dealing with the registry from within SQL:

    http://www.sqlservercentral.com/articles/Administration/3092/

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • I assume you are asking if the SQL Server instance is using Integrated Security or not, here is a simple query to accomplish that:

    select serverproperty('IsIntegratedSecurityOnly')

    1 = Integrated security

    0 = Not Integrated security

  • That's what I was looking for. Thank you much!

  • You're welcome and thanks for the feedback.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply