I would like to check to see the SQL Server that a user selects has "mixed mode authentication" selected. I found a registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10_50.SQL2008R2\MSSQLServer and they key is LoginMode.
A value of 1 is "Windows Only" and 2 is "Mixed Mode". The problem is that the value in the middle of th ekey is loosely based on a combination of the version of SQL they are using and the name of the instance. I want to add this as a check in the disalog sequence after they select the SQL Server and if the value is not 2, give the person a warning and allow to cancel and try again.
Any suggestions?
Thanks,
Rob