Print Page | Close Window

Get Apphelper Connection String

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=777
Printed Date: 18-Apr-2024 at 7:52am


Topic: Get Apphelper Connection String
Posted By: vinothvdp
Subject: Get Apphelper Connection String
Date Posted: 18-Apr-2008 at 10:21pm
Hello,how To Get the Apphelper Connection string at the runtime
 



Replies:
Posted By: davidklitzke
Date Posted: 22-Apr-2008 at 8:54am
There is not always just one connection string per DevForce application.  However, there is just one connection string per RdbKey,

Here is how you can get the connection string:
 
First get the IdeaBlade.config instance
Dim value As  ms-its:C:\Program%20Files\IdeaBlade%20DevForce\Documentation\IdeaBlade%20DevForce%20Consolidated%20Help.chm::/7/IdeaBlade.Util~IdeaBlade.Util.IdeaBladeConfig.html - IdeaBladeConfig 
 
value =  ms-its:C:\Program%20Files\IdeaBlade%20DevForce\Documentation\IdeaBlade%20DevForce%20Consolidated%20Help.chm::/7/IdeaBlade.Util~IdeaBlade.Util.IdeaBladeConfig.html - IdeaBladeConfig .Instance
From the IdeaBladeConfig, get the RdbKeys collection which is an  ms-its:C:\Program%20Files\IdeaBlade%20DevForce\Documentation\IdeaBlade%20DevForce%20Consolidated%20Help.chm::/7/IdeaBlade.Util~IdeaBlade.Util.IdeaBladeConfig+XmlRdbKeyCollection.html - IdeaBladeConfig.XmlRdbKeyCollection 
 
Select one of the XmlRdbKeys in the collection (often the one with the name of "Default")
Get the connection string from the connection property.
 



Print Page | Close Window