Example #1
0
        public override DataTable Export(Cell location)
        {
            DataTable     tbl = null;
            DB2Identifier id  = (DB2Identifier)GetIdentifier(location);

            _server.Execute(string.Format("SELECT * FROM {0}", id.FullName), out tbl);
            tbl.TableName = id.Name;
            return(tbl);
        }
Example #2
0
        public override DBObjectIdentifier GetIdentifier(Cell location)
        {
            DataRow row = _tblViewer.DataTable.Rows[location.Row];

            DB2Identifier id = new DB2Identifier();

            id.Context  = _server.DBMSContext;
            id.Type     = DBObjectEnum.Table;
            id.Name     = row["TABLE_NAME"].ToString();
            id.Database = row["TABLE_CATALOG"].ToString();
            id.Owner    = row["TABLE_SCHEMA"].ToString();
            id.SubType  = row["TABLE_TYPE"].ToString();

            return(id);
        }