Community
Showing results for 
Search instead for 
Do you mean 
Reply

Getting the Current Database Name and ACT version

New Member
Posts: 1
Country: United States

Getting the Current Database Name and ACT version

Is there a way throught the SDK to get the current database name, location, and ACT version?  If so, can someone give the method used and namespace. An example would be nice also.

 

Thanks,

Anthony Polk

CRM Computers

formerly CD Consulting Group, Inc.

Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Getting the Current Database Name and ACT version

Hi Anthony,

 

Here is one possible way of doing what you want. I've written it without intellisense available so apologies for any typos etc.

 

 

ActFramework oFram = new ActFramework();oFram.Logon(...); //enter the relevant logon params.MessageBox.Show(oFram.CurrentDatabase); //returns string of current dB you are logged into.MessagBox.Show(oFram.ActDatabaseManager.DatabasePath); //returns string of current dB Path.MessageBox.Show(oFram.ActDatabaseManager.SchemaVersion); //returns string of schema version of dB.

 

 HTH

 

Vivek Gargav

Caldere Associates Ltd.

www.caldere.com 

 

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog