Re: Connection String
From: Marina (someone_at_nospam.com)
Date: 03/04/04
- Next message: Kentamanos: "Using an HttpHandler to redirect a certain extension to ASPX pages behind the scenes"
- Previous message: Stanley: "Re: Connection String"
- In reply to: Stanley: "Re: Connection String"
- Next in thread: Kirk Graves: "Re: Connection String"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Mar 2004 14:57:08 -0500
The only reason would be to not have to decrypt it every time, since it's
being stored encrypted. Besides, even if it was being stored in plain text,
do you think one string the size of a connection string would take up enough
memory for it to actually make a difference? If the memory performance of
an application is ruined by having a connection string in memory at all
times, then there are real problems...
"Stanley" <webmaster@nospam-glass-images.com> wrote in message
news:O8o$UIiAEHA.3352@TK2MSFTNGP09.phx.gbl...
> Why do you want it in memory? You can grab it anytime you want from your
> web.config. Putting it in memory just means less memory for other things.
> Just my opinion here but I like to save the memory for more important
> things.
>
> -Stanley
>
> "A.M" <IHateSpam@sapm123.com> wrote in message
> news:eUu51EiAEHA.1700@TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > I have an encrypted database connection string stored in web.config file
> and
> > i need to have the connection string several times in my application.
> >
> > What would be the best way to have that connection string in memory
> variable
> > ?
> >
> > I am thinking to add a member variable to Global class in global.aspx.cs
> and
> > initialize it in Application_Start event handler. Is it the best
practice?
> >
> > Thanks,
> > Ali
> >
> >
>
>
- Next message: Kentamanos: "Using an HttpHandler to redirect a certain extension to ASPX pages behind the scenes"
- Previous message: Stanley: "Re: Connection String"
- In reply to: Stanley: "Re: Connection String"
- Next in thread: Kirk Graves: "Re: Connection String"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|