To configure dataSource connection, just after the call to sqlMap = SqlMapper.Configure() you can access the connection string property by sqlMap.DataSource.ConnectionString, you can fill it at this time.
For multiple databases you will need an instance of SqlMap for each database (with different sqlMap.config) as Clinton said. -Gilles ----- Original Message ----- From: "Alexey Boroday" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 14, 2004 3:50 PM Subject: Configure iBATIS in run-time without sqlmap.config > Hello. > > Could you help me please - I'd like to configure dataSource connection > string in the run-time instead of storing it in the sqlmap.config file. > How can I fill this property in runtime? > > And one more - application should be able read data from two separate > databases and write it into the third one. Tell me please - is it possibly > to have two database elements in the sqlmap.config? Or I should define three > dataSource elements inside one database? > How can I run QueryForList method to make it returns object list from one > database if in the config file three dataSource are enumerated? > > Thank you > > > > ___________________________________________________________________________ > > This communication is confidential and may be legally privileged. > If you believe you are not an intended recipient, please inform the sender, > delete the e-mail and do not copy, print or use it or disclose it to others. > You can inform the sender by replying to this e-mail or by telephone (+380 44 4906080). > >