Example #1
0
        public Connections GetConnections( Server server, Microsoft.SqlServer.Management.Smo.Database database )
        {
            var sqlConnection = new Connection
                {
                    Name = "DbConnection",
                    ConnectionString =
                        string.Format( "Server={0};Initial Catalog={1};Integrated Security=SSPI;", server.Name, database.Name )
                };

            return new Connections
                {
                    Connection = sqlConnection
                };
        }