DELETE patrik..conspects WHERE db='$Sinda' AND tbl='report'
INSERT patrik..conspects VALUES('$Sinda', 'report', 6, 'number of lines in report sample data')
INSERT patrik..conspects VALUES('$Sinda', 'report', 7, 'relational model flags')
INSERT patrik..conspects VALUES('$Sinda', 'report', 8, 'position of view viewed in RM')
INSERT patrik..conspects VALUES('$Sinda', 'report', 10, 'NT username who have last changed report')
INSERT patrik..conspects VALUES('$Sinda', 'report', 11, 'column name free select')
GO
use patrik
GO
CREATE TABLE md_def (db varchar(30) NOT NULL, feature varchar(255) NOT NULL, width int NULL, ord int NOT NULL, PRIMARY KEY (db, ord))
CREATE INDEX ref1 ON md_def(db)
CREATE TABLE md_data (db varchar(30) NOT NULL, tbl varchar(30) NOT NULL, colid int NOT NULL, data text NOT NULL, PRIMARY KEY (db, tbl, colid))
CREATE INDEX ref1 ON md_data(db)
CREATE INDEX ref2 ON md_data(db, tbl)
CREATE TABLE ptree (db varchar(30) NOT NULL, parent varchar(30) NOT NULL, child varchar(30) NULL, ch_type int NOT NULL) -- obj, subdir, dirinf
CREATE INDEX ref1 ON ptree(db, parent)
CREATE INDEX ref2 ON ptree(db, child, ch_type)
CREATE TABLE tabexpand (usr varchar(30) NOT NULL, db varchar(30) NOT NULL, tbl varchar(30) NOT NULL, op int NOT NULL, colid int NULL, arg varchar(255) NULL)