Here is the code I used to detect ms sql server versions
Which used to work, maybe I can modify it to detect this new type of ms sql server.
AS in registry location.
Anyone know the location?
*******************************************************************
Private Sub cmdSQL_Click()
Dim lvVersion As Variant
Dim lvCSDVersion As Variant
Dim objRegAccess As New RegAccess
Dim lsName As String
Dim lsKeyPath As String
' Set the name of the registry entry we are looking for.
lsName = "CurrentVersion"
' Define where the registry entry can be found.
lsKeyPath = "SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion"
' Use the RegAccess object to find our registy setting value.
' Set the key, "HKEY_LOCAL_MACHINE" inline, using the enumerated constant
' that is defined in our class module.
lvVersion = objRegAccess.GetRegSetting(lsName, Key:=RegKeys.HKEY_LOCAL_MACHINE, SubKey:=lsKeyPath)
' If a version is found, report that we have found SQL Server
' or compatible technologies.
If IsEmpty(lvVersion) Then
' Not installed.
Call MsgBox("This machine does not have Microsoft SQL Server or compatible technologies (MSDE) installed.", vbInformation, "SQL Not Found")
' cmdInstallDB.Enabled = False
Else
' SQL Server or compatible technologies is installed.
' For the most accurate build number, check for any service packs,
' which record build numbers in a separate registry key.
' Set the key name.
lsName = "CSDVersion"
lvCSDVersion = objRegAccess.GetRegSetting(lsName, Key:=RegKeys.HKEY_LOCAL_MACHINE, SubKey:=lsKeyPath)
If IsEmpty(lvCSDVersion) Then
'No service packs.
Call MsgBox("This machine contains build " & lvVersion & " of Microsoft SQL Server or SQL Server compatible technology (MSDE).", vbInformation, "SQL Found")
Else
'Report the higher service pack build number.
Call MsgBox("This machine contains build " & lvCSDVersion & " of Microsoft SQL Server or SQL Server compatible technology (MSDE).", vbInformation, "SQL Found")
End If
End If
End Sub