Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  SQL database schema for Cambrian release
Previous Previous
 
Next Next
New Post 5/8/2008 9:14 AM
User is offline CT
24 posts
10th Ranked


SQL database schema for Cambrian release 

Are there any plans to move to a cleaner SQL schema for the Cambrian release?

By cleaner, I mean a schema based on more readable examples like DNN.Portals instead of dbo.dnn_Portals, and DNN.Modules instead of dbo.dnn_Modules.

Or are there reasons the Core Team have decided to stay with the existing schema whether for "backward compatibility" or whatever?

Even if the Core Team remains committed to the prior schema, will it provide support in Startkit Templates or whereever else appropriate for those of us who want to move to a database schema with a pattern such as MyCompany.MyTable and MyCompany.MyStoredProcedure?

Thanks

CT

 
New Post 5/8/2008 9:44 AM
User is offline Sebastian Leupold
12276 posts
www.deutschnetnuke.de
1st Ranked












Re: SQL database schema for Cambrian release 

CT

in "grown up" SQL servers, all objects are preficed by their owner, which is "dbo" by default.

In your installation, all object names are prefixed by "dnn_", because this has been specified as "object qualifier" in your web.config file. this allows DNN to share the same DNN with other apps.


Sebastian Leupold



DotNetNuke Project UserDefinedTable
DotNetNuke Project XML/XSL
 
New Post 5/8/2008 9:57 AM
User is offline CT
24 posts
10th Ranked


Re: SQL database schema for Cambrian release 

Thanks for reply.

I do understand how DotNetNuke has implemented its naming scheme with "object qualifiers" which was originally designed (as I understand it) prior to the days of SQL Server 2005.

However, I'm not sure I agree with you about "grown up" SQL Servers and your statement about objects prefaced by their owner. Microsoft SQL Server documentation explains that beginning with SQL Server 2005 that Microsoft has separated the concept of ownership from the concept of schema so that they are now distinct and separate. Microsoft also explains the default assumptions they use in transitioning something that used to be an "owner" to what is now a "schema". Different "schemas" can now be owned by different "owners". It does provide for a much cleaner and much more elegant architecture.

So if the Core Team members responsible for SQL database architecture and naming conventions have not examined the improvements that Microsoft has made in moving from older SQL Servers to the newer SQL Server 2005 and higher, I hope they will do so.

Thanks much,

CT 

 
New Post 5/8/2008 9:44 PM
User is offline Dwayne Baldwin
477 posts
8th Ranked




Re: SQL database schema for Cambrian release 
Modified By Dwayne Baldwin  on 5/9/2008 12:45:30 AM)

I think you'll find the real reason for object qualifiers was specifically to have multiple DNN sites within one database in a shared hosting environment. Many hosts would license SQL Server and resell it to multiple customers by sharing SQL Server, in which case you were given a single database with storage limits.

MSDE (SQL Server Express today) is free for development and testing, but it remains rather expensive to have a Microsoft SQL Server license for real Internet use.

It is a simple change to remove the objectQualifier before installing DotNetNuke and slightly difficult for an existing installation (although it can be done).

Using the objectQualifier, DoNetNuke continues to happily support both dedicated and shared SQL hosting environments - without changing the core schema.


Dwayne J. Baldwin
 
New Post 5/9/2008 7:14 AM
User is offline CT
24 posts
10th Ranked


Re: SQL database schema for Cambrian release 

Thanks for info and the discussion. Filling in history for newcomers is always helpful.

As an aside question, when you use the lingo "DNN site", are you referring to the entire DNN installation? Or one of the DNN portals within the DNN installation?

In any event, I guess the issue I was focusing on was the question of whether DotNetNuke Core will be using or not using the new features beginning with SQL Server 2005 that separate schema from ownership.

Of course, the real underlying issue in my opinion is simply communication of recommended best practices for coding and naming. Where is the set of "best practice" guidelines published that is recommended for DNN developers to follow so that we all can better adhere to a common practice standard?

And where is the appropriate place for discussing these standards? For example, I am a strong advocate of consistency in all senses of the word consistency. So for example, I am not fond of the DotNetNuke use of mixing verbs and nouns when naming controls for a module. Note the use by DotNetNuke of View.ascx and EditModulename.ascx and Settings.ascx which mixes verbs and nouns and some include the module name and some do not. Instead, I would personally favor consistent use of verbs without the module name because the module name is used for the directory. Then you would have the following:

Modulename\View.ascx, Modulename\Edit.ascx, and Modulename\Configure.ascx

or some other verb instead of Configure. Well, presumably, I am free to name my controls within a module however I want, and will continue to do so.

However, again, the real underlying issue is clear communication about best practices for coding and naming conventions. Is there a publicly available (ie, available to members of this website who are not members of the Core Team) document that is maintained current and up-to-date for coding and naming conventions as recommended by the overall DotNetNuke community? Or otherwise, where is the document that explains the requirements for a DotNetNuke module to be "certified"?

Thanks,

CT

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  SQL database schema for Cambrian release
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au
Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke® logo are registered trademarks of DotNetNuke Corporation
Hosted by MaximumASP