How to open SSMS connection string? RRS feed

  • Question

  • I have a WPF application with listbox in it and the listbox contains items whcih are the connection strings for the servers, like this



    so i have the below code this is just a sample

    private void ListBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
                string sli=ListBox1.SelectedValue.ToString();
    so instead of showing message box i want to open a connection to the SSMS with the username and password provided, if ssms already open i dont want to open another SSMS if one is already open open the connection in that..how to achieve this?


    • Moved by Lie You Friday, April 20, 2012 2:50 AM Others. (From:Visual C# Language)
    Tuesday, April 17, 2012 1:02 AM


All replies