SqlConnectionDialog var factory = new ConnectionStringFactory(); var connectionString = factory.BuildConnectionString();