SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Afficher le mode de login pour SQL server

Accueil > Script > windows_2003 > Afficher le mode de login pour SQL server

Afficher le mode de login pour SQL server

Par Camille BEFFARA, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 07/08/2006 vers 10h.

Pour SQL server 2000
 
SQLDMOSecurity_Integrated  = 1
SQLDMOSecurity_Mixed         = 2
SQLDMOSecurity_Normal       = 0
SQLDMOSecurity_Unknown   = 9

strDBServerName = "."

Set objSQLServer = CreateObject("SQLDMO.SQLServer")

Select Case objSQLServer.ServerLoginMode(strDBServerName)
   Case SQLDMOSecurity_Integrated
      WScript.Echo "Login Mode: Allow Windows Authentication only."
   Case SQLDMOSecurity_Mixed
      WScript.Echo "Login Mode: Allow Windows Authentication or SQL Server Authentication."
   Case SQLDMOSecurity_Normal
      WScript.Echo "Login Mode: Allow SQL Server Authentication only."
   Case SQLDMOSecurity_Unknown
      WScript.Echo "Login Mode: Security type unknown."
End Select



Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
1

Visites :
5790

1
2
3
4
5

Scripts Windows Précédent :

Déterminer les dossiers vides



Retrouvez ci-dessous les autres sections du Laboratoire Microsoft