Re: question about proper production db/ado usage
From: Sean Nolan (seann_at_imgno%spaminc.com)
Date: 03/18/05
- Next message: Sean Nolan: "Re: How to get RecordsAffected when an exception occurs"
- Previous message: Sushil Chordia: "Re: How to get RecordsAffected when an exception occurs"
- In reply to: Flip: "Re: question about proper production db/ado usage"
- Next in thread: Flip: "Re: question about proper production db/ado usage"
- Reply: Flip: "Re: question about proper production db/ado usage"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Mar 2005 16:28:53 -0600
Yes there is :-)
You put the connection string in the appSettings section of the application
configuration file (web.config for an ASP.NET app) and read it with the
ConfigurationSettings.AppSettings property, see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpgrfaccessingappsettingssection.asp
Or in Visual Studio .NET you can use Dynamic Properties for a slightly more
hands-off approach, see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboriintroductiontoapplicationsettingstorage.asp
For a more secure approach with ASP.NET apps (requires registry mods and a
downloadable utility) see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q329290
Sean
"Flip" <[remove_me]phenry_w@hotmail.com> wrote in message
news:uYZAdTALFHA.2540@TK2MSFTNGP10.phx.gbl...
>> Pooling is nicely described here:
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconConnectionPoolingForSQLServerNETDataProvider.asp
>
>
> Thank you Sean for your feedback. Is there a standard/suggested way to
> create/use the connection strings in a web app?
>
> Thanks.
>
- Next message: Sean Nolan: "Re: How to get RecordsAffected when an exception occurs"
- Previous message: Sushil Chordia: "Re: How to get RecordsAffected when an exception occurs"
- In reply to: Flip: "Re: question about proper production db/ado usage"
- Next in thread: Flip: "Re: question about proper production db/ado usage"
- Reply: Flip: "Re: question about proper production db/ado usage"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|