[TV] Thinking a little (not ´´that´´ much) about [Linking Bwise with PostgreSql] I thought storing a procedure in [SQL] (I used the Postgres lately, I suppose mySql or some commercial dbase variation are similar). In it´s simplest form, we could take the whole normal tcl procedure definition in text form and after quoting correctly store it in a sql field. Testig (omiting the connect command and the obvious error checks): create table procs (name varchar(80), version int, body varchar(80)) set res [pg_exec $db "insert into procs values ([pg_quote square], 1, [pg_quote {proc square {a} {return [expr $a*$a]}}])"] set res [pg_exec $db "insert into procs values ([pg_quote add], 1, [pg_quote {proc add {a b} {return [expr $a+$b]}}])"] I opened a console with tkpsql (1.2.1) to try the above out, because it´s command form doesn´t allow the extra qoute command, but once the procs are filled in, we can say: [http://82.171.148.176/Wiki/srcprocsql1.gif] ---- !!!!!! %| enter categories here |% !!!!!!