Hi! I had refer that URL, but until get error message I had reference SQLDMO and declare: private SQLDMO.Application sqlApp = new SQLDMO.ApplicationClass(); SQLDMO.NameList sqlServers=null; this is my code: private void Form1_Load(object sender, System.EventArgs e) { try { sqlServers = sqlApp.ListAvailableSQLServers(); for(int i=0;i 0) this.cboServers.SelectedIndex = 0; else this.cboServers.Text = ""; } catch(Exception err) { MessageBox.Show(err.ToString(),"Error"); } } and i get an error: System.InvalidCastException:QueryInterface for interface SQLDMO.NameList faild at SQLDMO.ApplicationClass.ListAvailableSQLServer() at .... Cuold you help me, please.