Subject | Re: [firebird-support] Re: corrupted database |
---|---|
Author | Ann W. Harrison |
Post date | 2005-11-29T17:33:44Z |
Graham wrote:
one database to another. Look here:
http://www.ibphoenix.com/?page=ibp_mig_tools
Or try the sequence that follows.
Regards,
Ann
That will produce output like this:
define relation tgt.<table1>
based on relation src.<table1>;
define relation tgt.<table2>
based on relation src.<table2>;
...
tgt.<table1> = src.<table1>;
tgt<table2> = src.<table2>;
...
edit the output, adding the lines necessary to open the source database
and create the target.
connect database.gdb user 'sysdba' password 'masterkey;
create database 'new.fdb' user 'sysdba' password 'masterkey';
finish
ready database.gdb as src
ready new.fdb as tgt
define relation tgt.<table1>
based on relation src.<table1>;
define relation tgt.<table2>
...
call that file move.sql.
QLI> @...
Hope this helps.
>The easiest thing to do is find one of the tools that copies data from
> So, now I'm on step 10.2. I've edited the get_tables.sql file to
> point to my file, but I'm not clear on how I execute this file.
one database to another. Look here:
http://www.ibphoenix.com/?page=ibp_mig_tools
Or try the sequence that follows.
Regards,
Ann
> qliQLI> @get_tables.sql
That will produce output like this:
define relation tgt.<table1>
based on relation src.<table1>;
define relation tgt.<table2>
based on relation src.<table2>;
...
tgt.<table1> = src.<table1>;
tgt<table2> = src.<table2>;
...
edit the output, adding the lines necessary to open the source database
and create the target.
connect database.gdb user 'sysdba' password 'masterkey;
create database 'new.fdb' user 'sysdba' password 'masterkey';
finish
ready database.gdb as src
ready new.fdb as tgt
define relation tgt.<table1>
based on relation src.<table1>;
define relation tgt.<table2>
...
call that file move.sql.
QLI> @...
Hope this helps.