Govinda:
If you wanted to, you could just load a DbeSharedSettingsData and then create the connection yourself. It would look something like this:
DbeSharedSettingsData sharedSettings = new DbeSharedSettingsData();
//-- Load the shared settings file into the BO. The shared settings file is XML that populates a business object.
sharedSettings.FillWithSharedSettings(@"c:\Repository\NameOfSharedSettingsFile.ssf");
//-- Build a connection string
string connectionString = "server=" + sharedSettings.ss_server + ";";
if(sharedSettings.ss_windowsauthentication)
connectionString += "integrated security=SSPI;";
else
connectionString += "user=" + sharedSettings.ss_username + ";password=" + sharedSettings.ss_password + ";"
connectionString += "database=" + sharedSettings.ss_initialcatalog + ";";
//-- Now you can create your connection
MicroFour.StrataFrame.Data.DataBasics.DataSources.Add(New SqlDataSourceItem(string.Empty,connectionString));
You may have to tweak the above code, I just typed it in here in the forum editor, so it may have a small typo here or there, but this should get you going without changed the SF source.