Authentication Mode using T-SQL or SP...?

  • Is it possible to find what authentication mode a server is running using a t-sql command or SP on both 2000 and 2005..?

    -

  • Two ways that I know of ...

    1)

    SELECT ServerProperty('IsIntegratedSecurityOnly')

    1 = Integrated Security

    0 = SQL & Integrated Security

    2)

    EXEC master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode'

    1 = Integrated Security

    2 = SQL & Integrated Security

Viewing 2 posts - 1 through 1 (of 1 total)

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