Connecting Tech Pros Worldwide Forums | Help | Site Map

I want to make common connection string for database

Alex Smith
Guest
 
Posts: n/a
#1: Nov 19 '05
Hi Friends

I want to make common connection string for database. I can not use Web
config file, so please give idea excluding web.config file.

Thanks.

Alex



Patrice
Guest
 
Posts: n/a
#2: Nov 19 '05

re: I want to make common connection string for database


Registry, another file, a constant etc... ???

Knowing the reason for which you can't use web.config may also help to
understand your requirements...

Patrice

--

"Alex Smith" <sam@gmail.com> a écrit dans le message de
news:%23fpLMcydFHA.892@tk2msftngp13.phx.gbl...[color=blue]
> Hi Friends
>
> I want to make common connection string for database. I can not use Web
> config file, so please give idea excluding web.config file.
>
> Thanks.
>
> Alex
>
>[/color]


Stu
Guest
 
Posts: n/a
#3: Nov 19 '05

re: I want to make common connection string for database


You could store it in an Application variable - load it when the
'Application_Start' event fires in the Global.asax file.

The down side to this is that you need to re-compile the application if you
change the database connection string.

Stu


"Alex Smith" <sam@gmail.com> wrote in message
news:%23fpLMcydFHA.892@tk2msftngp13.phx.gbl...[color=blue]
> Hi Friends
>
> I want to make common connection string for database. I can not use Web
> config file, so please give idea excluding web.config file.
>
> Thanks.
>
> Alex
>
>[/color]


DB
Guest
 
Posts: n/a
#4: Nov 19 '05

re: I want to make common connection string for database


Use xml file to store database details.
If you need more info then ping me.
Regards,
Deepak
"Alex Smith" <sam@gmail.com> wrote in message
news:%23fpLMcydFHA.892@tk2msftngp13.phx.gbl...[color=blue]
> Hi Friends
>
> I want to make common connection string for database. I can not use Web
> config file, so please give idea excluding web.config file.
>
> Thanks.
>
> Alex
>
>[/color]


Closed Thread