Thursday, September 09, 2010
  Search
 
Register
Login
 
Upgrading to DotNetNuke Cambrian 5.0 from DotNeNuke 4.x
If you're looking to try out the new DNN Cambrian package, you can upgrade previous DotNetNuke installations with the following steps. Remember, as of right now, the DNN 5.0 Cambrian package availabl...

Find this article and more in the category

Read This Article . . .

How To Customize the Privacy and Terms Links on Your DotNetNuke Portal
Straight out of the box, DotNetNuke already has a lot of things covered. But, what do you do when you are ready to begin customizing your site. Sometimes, it’s not so easy to figure out how to make t...

Find this article and more in the category

Read This Article . . .

Installing Active Directory Authentication Package on DotNetNuke
DotNetNuke has abstracted the authentication providers away from the core giving site owners the ability to add new authentication systems. You can see in the picture below that by default, the DotNe...

Find this article and more in the category

Read This Article . . .

CodePrint Module
Tired of mucking around with adding code chunks to your website? We all know what a pain it can be trying to add some simple block of code to our webpages and still make it readable. Introducing....T...

Find this article and more in the DotNetNuke category

Read This Article . . .

How to Install and Configure ActiveDirectory Provider for DotNetNuke 5.0
 The directions for installing and configuring extensions in DotNetNuke 5.0 are very similiar, but slightly different than from previous versions. Here's how to install the ActiveDirectory authentica...

Find this article and more in the category

Read This Article . . .

New DotNetNuke 5.0 Cambrian Package Writer for Module Developers
Attention developers! DotNetNuke 5.0 Cambrian has a nifty new tool to help developers package their modules nicely to fit with the new “Extensions” manager. Under the old Module Definitions manager, ...

Find this article and more in the category

Read This Article . . .

Quick Check for Troubleshooting the CodeEndeavor Ajax Templates
I haven’t just installed the the template and created a module out of the box yet. However, I have come across a few things that I know to check and fix and I’m up and running in no time at all. If y...

Find this article and more in the category

Read This Article . . .

Getting Aquainted with the DNN Classes
 So, you've decided to start checking out DotNetNuke development and you're wondering where to start, right? Well, it's easy to start taking a quick tour of the DotNetNuke classes now with the help o...

Find this article and more in the category

Read This Article . . .

Creating new DotNetNuke HTTP Alias Records
 Setting up DotNetNuke to handle serving requests for Portal Alias records is a breeze. You can use these records to direct your site to handle requests for multiple domain names to one website with ...

Find this article and more in the category

Read This Article . . .

I Need to Modify the What to Install DNN? What in the World is a Web.Config File Anyway??
 If you're wondering what in the world a web.config file is, then wonder know more. . .in about 5 minutes, you'll know more than you do now and be well on your way to moving forward.

Find this article and more in the Web.Config category

Read This Article . . .

Recently Added Articles

Minimize
Article List

 

SERIES: Anatomy of a DNN Web.Config File-connectionStrings

12/9/2008 3:30:22 PM - By Briana Tarrance

Category: | | Comments 0

 

 

Related Links

The <connectionStrings> section holds all the necessary information for database communication from your website. At minimum, there will be at least one connection string for any DotNetNuke website.

By default, the config files that come with your DotNetNuke website has two connection string elements in them; although one is commented out (shown in green below). It is there mainly to give you the proper syntax for creating a connection to a database that is physically located outside of your websites structure. The uncommented connection string is the proper syntax for a connection made to a SQL Express database that is physically located in the App_Data folder within your website structure.

<connectionStrings>
   <!-- Connection String for SQL Server 2005 Express -->
   <add name="SiteSqlServer" 
        connectionString="Data Source=.\SQLExpress;
           Integrated Security=True;
           User Instance=True;
           AttachDBFilename=|DataDirectory|Database.mdf;" 
        providerName="System.Data.SqlClient" />
   <!-- Connection String for SQL Server 2000/2005
   <add name="SiteSqlServer" 
       connectionString="Server=(local);
           Database=DotNetNuke;
           uid=;pwd=;" 
       providerName="System.Data.SqlClient" /> 
   -->
 </connectionStrings>

As you can see from above, the “name” of the element is “SiteSqlServer”. While you technically can change this name, it is tightly coupled with DotNetNuke and changing the name may have adverse affects with DotNetNuke operations or third party modules. This connection string will dictate where your DotNetNuke data will be stored and retrieved from. Once you have your proper connection string set, there is no need to keep both of these strings on your config file. Some people choose to get rid of the extra lines for simplification and others prefer to leave it for future reference or “just in case”. Either way will work fine.

For more information on connection strings or for proper syntax with other types of database servers, visit http://www.connectionstrings.com/

powered by metaPost
 

Related Articles
Everything You Never Wanted to Know About the Config File

 
 
Copyright 2008 by Virtual-Essentials.com Privacy Statement    Terms Of Use