private static void ReadRegisteredServers(string xmlPath) { XmlDocument doc = new XmlDocument(); doc.Load(xmlPath);

if (!System.IO.File.Exists(ssmsPath)) { ssmsPath = @"C:\Program Files\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"; }

// Read recent connections Console.WriteLine("\nRecent Connections:"); SSMSRecentConnections.ReadRecentConnections(); } else { Console.WriteLine("✗ SSMS 18 is not installed"); Console.WriteLine("Please download from: https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms"); } }