public class SSMSAutomation { public static void ConnectToDatabase() { Type ssmsType = Type.GetTypeFromProgID("SqlServerManagementStudio.SsmsApplication");
if (File.Exists(exePath)) { var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(exePath); return $"SSMS Version: {versionInfo.FileVersion}"; } return "SSMS 18 not found"; }
}
}
A "Map Mode" for the vertical scroll bar allows for better navigation in long scripts. Management and Productivity Tools
public class SSMSAutomation { public static void ConnectToDatabase() { Type ssmsType = Type.GetTypeFromProgID("SqlServerManagementStudio.SsmsApplication");
if (File.Exists(exePath)) { var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(exePath); return $"SSMS Version: {versionInfo.FileVersion}"; } return "SSMS 18 not found"; } ssms 18
}
}
A "Map Mode" for the vertical scroll bar allows for better navigation in long scripts. Management and Productivity Tools return $"SSMS Version: {versionInfo.FileVersion}"