StrataFrame Forum

Access application connections

http://forum.strataframe.net/Topic398.aspx

By Scott - 12/30/2005

I am trying to get the current connection of the application to be used in an error routine.  There doesn't seem to anything in the docs about the new features that were added in terms of connections.  Could you point me in the right direction.
By Scott - 1/5/2006

I am trying to get the current connection that the application is using to be used in an error routine.  There doesn't seem to be anything in the docs about the new features that were added in terms of connections.  Could you point me in the right direction.
By StrataFrame Team - 1/6/2006

Sorry, Scott, the documentation wasn't updated when the changes were made to the connections. In the updated chm file that I posted yesterday, the section Application -> Connection String Management has been re-written to tell about all of the changes to the connection settings. Basically the application-wide connection string was replaced with the applicaiton-wide DataSources collection.



The best way to get the connection string would be to call



MicroFour.StrataFrame.Data.DataLayer.DataSources("").ConnectionString;




If your application has more than one data source, then you'll need to replace the "" with the key of the data source you want to retrieve the connection for.
By Scott - 1/6/2006

Great.  Thanks for the info.  You guys must have been working really hard on the documentation over the holidays.