示例#1
0
        public DatabaseDestination(IsIdentifiableAbstractOptions options, string reportName)
            : base(options)
        {
            var targetDatabase = new DiscoveredServer(options.DestinationConnectionString, options.DestinationDatabaseType).GetCurrentDatabase();

            if (!targetDatabase.Exists())
            {
                throw new Exception("Destination database did not exist");
            }

            _tbl = targetDatabase.ExpectTable(reportName);

            if (_tbl.Exists())
            {
                _tbl.Drop();
            }

            _reportName = reportName;
        }