示例#1
0
        public ScriptWriter(CAMOsoft.DbUtils.MsSqlSession db, string outputFolder)
        {
            _db           = db;
            _OutputFolder = outputFolder;
            string sql = "SELECT @@SPID AS SPID, SUSER_NAME() AS UserName, DB_NAME() AS DbName, @@SERVERNAME AS ServerName;";

            _ServerInfoRow = _db.SelectRow(sql);
            InitTable();
        }
示例#2
0
        public ScriptWriter(CAMOsoft.DbUtils.MsSqlSession db, string outputFolder)
        {
            _db           = db;
            _OutputFolder = outputFolder;
            string sql = "SELECT @@SPID AS SPID, SUSER_NAME() AS UserName, DB_NAME() AS DbName, @@SERVERNAME AS ServerName, @@VERSION as ServerVersion;";

            _ServerInfoRow = _db.SelectRow(sql);

            if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["excludeDataTypes"]))
            {
                _excludeDataTypes = new List <string>(ConfigurationManager.AppSettings["excludeDataTypes"].Split(new char[] { ';' }));
            }

            InitTable();
        }