Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Integration of Existing DatabaseIntegration of Existing Database
Previous
 
Next
New Post
3/14/2007 8:43 AM
 

Just wondering if anyone has integrated an existing application database with DNN and what their experiences are.

My application at the moment is developing at the same time as my Website so I have the flexibilty to either develop the database separately or integrate into the DNN database. There will be constant interaction between the dnn and my application as they are almost one in the same, though I have a lot of extra tables and transactions (reservation transactions and money transactions) My application is essentially a Timeshare of various assets (cars, houses, planes etc) which charges a monthly fee, each asset will have it's own portal as they have a separate brand.

Are there issues connecting to a separate database?  Will there be issues if I require managers of assets/bases to be able to ineract across portals ?

Can anyone make recommendations on their experiences ?

 
New Post
3/15/2007 2:18 AM
 

You can connect to any number of databases or files that you like

- provided that you understand the implications of doing so.

Ultimately DNN is still at whole big bag of ASP.NET based code talking to a database.

Natively inside DNN there is its own implementation of a data access layer - which DNN uses for all its data access and which module developers are encouraged to use.  This is the DAL and more recently DAL+ element of DNN.

BUT - in reality there is nothing stopping you writing your own connection calls and executequery calls to any other database - and handling the returned data etc .

If you are already doing this in your external application then you already understand the coding required.

ABout the only REAL advantage of using the dnn DAL over your own homebrew- is that the DNN DAL provides a set of functional data abstration layers to remove lots of database access coding and reduce ugly pages of code questing and updating data to  nice clean object based code like:

myINFO = myCTL.getkey( someDatakey)
myINFO.somefield = "some newvalue"
myCTL.update( myINFO)

Thats "three" lines of code to update the contents of a field in a sql table.

How many lines of code would that be taking you now ?

>>>>>>>>>

I guess the other question really is - why have a seperate WEB SITE and APPLICATION - seems like you could cut down on repetition by developing the whole show on a DNN based web portal.

Westa

 
New Post
3/15/2007 2:15 PM
 
please have also a look at the tutorials of Michael Washington, AFAIR he also addressed the request, how to access other databases (if not in his tutorials, have a search here in the forums).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/16/2007 5:33 AM
 

Thanks both for your help.

Westa - unfortunately I am the business brain behind the application and my .NET skills are non existant. Though my SQL skills are pretty good.

With regards to Separate web site and application - I completely agree. I want them to be the same thing. I just don't know how to do it. Am looking for people to do this for me at the moment.

Thanks again

 
New Post
3/16/2007 4:53 PM
 

Westa, thanks for talking about that a little.  I am embarking on an application myself and have been trying to wrap my brain around how to do it in DNN.  I am still pretty new at .net in general, much less DNN, but I persist.  Having said that...

  • Is it possible to (easily) write a multi-page application in DNN?  Everything seems to want to be a module, but my impression is that a module is a self-contained piece of code existing on one page.  Is it possible to write multi-page apps without using modules?
  • I have read that it is preferred to develop using modules so that it posts back to itself, and the interface elements are made visible or hidden according to what has been selected.  Is this the best way to write "applications" in DNN?

Thanks, Terry

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Integration of Existing DatabaseIntegration of Existing Database


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out