got it to work!!

Posts   
 
    
nmarun
User
Posts: 27
Joined: 31-Jul-2006
# Posted on: 30-May-2007 23:14:59   

Hi Walaa,

This is the way I've got it to work.

The connection string in web.config looks like this:


<add key="Main.ConnectionString" value="Server=TREMOR;initial catalog={0};integrated security=SSPI;persist security info=False;packet size=4096"/>

For purpose of testing, I have the following:


            DatabaseArray[0] = "MCFC";
            DatabaseArray[1] = "MCFCA";
            DatabaseArray[2] = "MCFT";
            DatabaseArray[3] = "MCFW";

            int CompanyID = int.Parse(CompanyDropDownList.SelectedValue);
            string ConnectionString = string.Format(ConfigurationManager.AppSettings["Main.ConnectionString"], DatabaseArray[CompanyID]);
            DataAccessAdapter daa = new DataAccessAdapter(ConnectionString, false, CatalogNameUsage.ForceName, DatabaseArray[CompanyID]);

Please let me know if there's a better way to do so.

Thanks Arun

nmarun
User
Posts: 27
Joined: 31-Jul-2006
# Posted on: 30-May-2007 23:16:48   

sorry, i hit 'new thread' instead of 'new message'. This post is a continuation of my post: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=10053

my apologies again Arun

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 31-May-2007 09:13:19   

Glad you got it to work.

I've already answered you in the other thread, and I provided you a solution for SelfServicing.

I'll close this thread, so we can follow up there if you are still facing problems.