调用微软的数据库连接对话框
using Microsoft.Data.ConnectionUI;
private void button1_Click(object sender, EventArgs e)
{
DataConnectionDialog dlg = new DataConnectionDialog();
dlg.DataSources.Add(DataSource.SqlDataSource);
dlg.SelectedDataProvider = DataProvider.SqlDataProvider;
DataConnectionDialog.Show(dlg, this);
}