Click here to Skip to main content
Click here to Skip to main content
Articles » Database » Database » Databases » Downloads
 

Custom Configuration SQL Connection String Section

By , 23 Jan 2006
 
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<configSections>
		
		<sectionGroup name="SqlConnectionConfigurationSection">
				<section name="SqlConnectionStringCollection" type="CodeProject.SqlConnectionConfigurationSectionHandler,CodeProject.SqlConnectionStringCollection"/>
		</sectionGroup>
		
	</configSections>

	<SqlConnectionConfigurationSection>
		<SqlConnectionStringCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SqlConnectionStringCollection.xsd">
			<SqlConnectionString ID="App.Web" Required="true">
				<Authentication><Trusted/></Authentication>
				<Database><Name>Northwind</Name></Database>
			</SqlConnectionString>
		</SqlConnectionStringCollection>
	</SqlConnectionConfigurationSection>

	<!-- WARNING: This section MUST follow the configSection -->
    <appSettings>
        <add key="MandatorySqlConnectionConfigurationSection" value="true" />
    </appSettings>

</configuration>

By viewing downloads associated with this article you agree to the Terms of use and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ted Bouskill
Software Developer (Senior)
Canada Canada
Member
Very experienced Senior Software Developer/Manager with natural leadership and proven project management skills.
 
Started in Civil Engineering leading the integration of PC's into the Engineering process as a Design/Drafting Technician as well as an in-house Software Developer then transitioned into a full time Software Development career in the early 90's.
 
Ability to change and adapt has led to diverse experience with a wide array of technology and roles from graphics or web development to designing line of business enterprise applications.
 
Knowledge Base: Sharepoint, C#, SQL, ASP.NET, C++, CSS, HTML, JavaScript, XML, XSLT

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 24 Jan 2006
Article Copyright 2006 by Ted Bouskill
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid