diff --git a/ServerExplorer/UI/FrmServidores.cs b/ServerExplorer/UI/FrmServidores.cs index 71969b1..f809bb1 100644 --- a/ServerExplorer/UI/FrmServidores.cs +++ b/ServerExplorer/UI/FrmServidores.cs @@ -113,7 +113,7 @@ namespace ServerExplorer.UI { // Construir cadena de conexion final SqlConnectionStringBuilder constructor = new SqlConnectionStringBuilder(); - constructor.DataSource = txtServidor.Text; + constructor.DataSource = (!string.IsNullOrEmpty(txtServidor.Text)) ? txtServidor.Text : "localhost"; constructor.InitialCatalog = (String)lsvBBDD.SelectedItems[0].SubItems[0].Text; if (txtUsuario.Text.CompareTo("") == 0) {