On Wed, Apr 25, 2012 at 13:58, Priya S <priya579...@googlemail.com> wrote:
> Could you please guide me what is the easiest way if I want to use table
> Tperson from a different postgres database instead of table eperson?.

In any case, you need a connection to this other database. So for each
SQL command operating on the Tperson table you need to set the context
to use a DB connection to your second database:
context.setConnection(dbURL, dbUsername, dbPassword);

Then you pass this context to DatabaseManager methods operating on the
Tperson table. Of course, you'll need to change the table name in SQL
commands, too, or, alternatively, create a view in the second database
mapping Tperson to eperson.

Regards,
~~helix84

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to