Subject | Re: [Firebird-Java] Firebird database switch in same connection |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-09-30T14:25:09Z |
Hi,
server. Transactions are database-bound, not server-bound.
database in the same connection? Why wouldn't be enough to use another
connection?
Roman
> I have got a DB connection to the Firebird server (super sever) ,This is not possible. Connection is obtained to the database, not to the
> to the database say 'c:\temp\one.fdb'. Now I like to switch the
> database to 'c:\temp\two.fdb' in the same connection ..
server. Transactions are database-bound, not server-bound.
> I tried like as in the below code snippet ,Catalogs are not supported by Firebird (see DatabaseMetaData results).
> Connection conn = fb.getConnection("c:\temp\one.fdb");
> //do some operation
> //commit
> //then swith db
> conn.setCatalog("c:/temp/two.fdb");
> // I am not sure of catalog setting will work
> but db switching like above failed
> So kindly let me know anyway to satisfy my requirement.Please describe your requirement in details. Why do you need to switch the
database in the same connection? Why wouldn't be enough to use another
connection?
Roman