DataTable dataTable = SmoApplication.EnumAvailableSqlServers(false); string constr2 = dataTable.Rows[0].ItemArray.GetValue(1).ToString();
Server server = new Server(new ServerConnection(constr2)); MessageBox.Show(server.Databases[0].Name);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)