Posts
30
Comments
77
Trackbacks
169
Store your App.Config inside SQL Server
 I did submit some time ago a little fix for the Enterprise Library SqlConfigurationSource  but I did not yet have time to blog about it. Better late than never I want to shed some light (again) on configuration. To get your application settings from your local disk you can use the .NET ConfigurationManager class or the (Entlib) FileConfigurationSource to fetch the settings from another file than your App.Config file. 
The Enterprise Library SqlConfigurationManager is the counterpart to the .NET ConfigurationManager class and can be directly used from any application that cares about central configuration. To use it you need a running SQL Server 2005 (Express) server and a database which contains some stored procedures which are responsible for reading and writing ConfigurationSections. The following code sample shows you how to get your settings with only a few lines of code from SQL server.

Show More ...
posted on Monday, April 17, 2006 7:26 PM Print
Comments
Gravatar
# re: Store your App.Config inside SQL Server
Sam Gentile
5/6/2008 6:37 AM
Do you have this code? Gotdotnet is shut down and the link is broken

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 7 and 6 and type the answer here:
News