Community
Showing results for 
Search instead for 
Do you mean 
Reply

Remote databases

Accepted Solution Solved
Champion Listener
Posts: 32
Country: Canada
Accepted Solution

Remote databases

Hello,

 

Working with remote databases, I found an issue in SDK.

I use syncDB.LastSuccessSyncDate property to get the date/time when database has synced last time. For master database, it works fine, property has correct value always.

The problem is when i try to retieve that property from Remote (subscriber) databases - the value is always 1/1/0001.

Is this a bug? 

Is there other way that i can get the last syncing time from remote databases?

 

Here is the code i'm using:

 ...

SyncDB[] syncDBList = HHCActFramework.SynchronizationManager.GetAllRemoteSyncDBs();
SyncDB syncDB = null;
DateTime lastRemoteDBSyncTime = DateTime.Now;

 

if (syncDBList != null)
  {
       for (int i = 0; i < syncDBList.Length; i++)
            {
                syncDB = syncDBList[i];
                if (syncDB != null)
                   {
                                    DateTime dtGMT = syncDB.LastSuccessSyncDate;
                                    ...........
                    }
             }
   }

 

Thanks.

 

Regards,

Katerina

 


Accepted Solutions
Solution
Accepted by topic author Katerina
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Remote databases

[ Edited ]
 

 

 

SyncDB[] syncList = afw.SynchronizationManager.GetAllSubDBs();
            
SyncDB syncDB = syncList[0];
DateTime lastGood = syncDB.LastSuccessSyncDate;
            

MessageBox.Show(lastGood.ToString());   

 

 

This will return the last good sync date on the remote.
Message Edited by mwood on 03-22-2010 09:28 AM
Matthew Wood
Act! SDK Support
Community Moderator

View solution in original post


All Replies
Solution
Accepted by topic author Katerina
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Remote databases

[ Edited ]
 

 

 

SyncDB[] syncList = afw.SynchronizationManager.GetAllSubDBs();
            
SyncDB syncDB = syncList[0];
DateTime lastGood = syncDB.LastSuccessSyncDate;
            

MessageBox.Show(lastGood.ToString());   

 

 

This will return the last good sync date on the remote.
Message Edited by mwood on 03-22-2010 09:28 AM
Matthew Wood
Act! SDK Support
Community Moderator
Champion Listener
Posts: 32
Country: Canada

Re: Remote databases

Thanks Matt. It worked.