Register
Login
HOME
USERS
DEVELOPERS
PARTNERS
NEWS AND EVENTS
FORUMS
Unanswered
Active Topics
Forums
Search
Forums
>
Connected Business Platform
>
General
Subject: Detect Connection String & Current Catalog - Revisited
Prev
Next
You are not authorized to post a reply.
Author
Messages
Oldest First
Newest First
Michael H
Posts:7
10/01/2008 2:34 PM
Using the July 2008 SDK for plugins.
Is there a way to find out what the connection string the application is using when a person logs on to IS, I suppose the app.config contains a encrypted list of various databases (config settings). How do I know what database the user connected to?
I was reading his article which mentions the
Interprise.Framework.Base.AppBlock.InterpriseConfigFactory.Create.DatabaseName
class. I can't seem to get to that class even after referencing the dll Interprise.framework.Base.
http://www.connectedbusiness.com/FORUMS/DeveloperForum/tabid/105/forumid/5/tpage/1/view/topic/postid/407/Default.aspx#407
Can someone help me?
John Boaz L
Posts:18
10/01/2008 6:01 PM
Hi Michael,
That class has long been deprecated, instead you can access the full connection string (plus a host of other information including User, Company, License information) from Interprise.Connectivity.Database.Configuration.Design.AppConfig.InterpriseConfiguration. To get the connection string, try this: Interprise.Connectivity.Database.Configuration.Design.AppConfig.InterpriseConfiguration.Instance.OnlineCompanyConnectionString. Don't forget to add a reference to Interprise.Connectivity.Database.Configuration.Design in your project.
Hope this was of help.
Regard,
John Boaz Lee
John Boaz T. Lee
Developer
Interprise Solutions
Michael H
Posts:7
10/02/2008 12:20 PM
Thanks John,
I'll give that a try and get back with you if I have any problems.
You are not authorized to post a reply.
Connected Business Platform
--General
--Framework Releated Questions
--Interprise Suite API Questions
--Source Code Questions
Forums
>
Connected Business Platform
>
General
> Detect Connection String & Current Catalog - Revisited
ActiveForums 3.7
Privacy Statement
|
Terms Of Use
Interprise Software Systems International Inc.