ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Choi, W. Byung" <BC...@UEIC.com>
Subject Changin initial catalog inside transaction for sql server
Date Wed, 05 Oct 2005 15:34:47 GMT
Hi.

 

This dosen't change database. But if I call "DAOFactory.SetDatabase" 

Outside of transaction database (intial catalog) is changed properly.

Both database is in same server (sql server).

 

try

            {

                DAOFactory.BeginTransaction();

 

                DAOFactory.SetDatabase(DAOFactory.GetPublicDBName());

                Load(id);

 

                Lock();

 

                DAOFactory.SetDatabase(DAOFactory.GetTempDBName());

                Commit();

 

                DAOFactory.CommitTransaction();

            }

            catch(Exception ex)

            {

                DAOFactory.RollBackTransaction();

                System.Windows.Forms.MessageBox.Show(ex.Message);  

            }

 

 

Byung


Mime
View raw message