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...Dynamic DatabaseDynamic Database
Previous
 
Next
New Post
9/21/2007 3:51 PM
 

I can't seem to get my head around this situation - it's friday...

I want to have 1 dnn install but the ability to go to any database as my customers are in their own databases. how do i accomplish this in dnn without having a set of code for every database? it's the same code for each customer, just a different database.

as of now, the desktop equivalent uses odbc to "point" to the right database when log in.

how can i dynamically change the web.config based on the login?

thanks for any thoughts!

MaryV

 

 
New Post
9/21/2007 9:51 PM
 

If customer1 user is already logged in, then comes customer2 user logging in and changes the database to customer2, wouldn't that screw up customer 1 user really bad?

 
New Post
9/24/2007 8:33 AM
 

I'd like the ability for the user to select the database he or she would like to be in

- there's no way i can have 50 customers with the size of the databases in 1 database - right now, I use odbc - they select the database from a drop down list that i load from odbc and then log in - i don't want to maintain 50 sets of code for 50 customers (50 installs) - but 1 set of code for 50 customers/databases and the user picks the one they want. any ideas?

thanks!

Mary

 

 
New Post
9/24/2007 10:21 AM
 

Isn't  the nature of DNN to display certain pre-defined information based on the user role? I am trying to figure out why you would use multiple databases to do what one would accomplish better, especially where common resources could be shared without duplicating information. I see a space savings in this.

Perhaps you could do something with user roles. Perhaps user 1could log in and what this user sees is a page that redirects them to their own resources? You would still have multiple databases and you would still have to set up that many pages for each unique user for each assigned role. I am not sure there is any advantage in this over using the drop down menu. However, there may be a way to use such a page to make the switch in the webconfig, though I can't think of one. What I do think is, you could simply use that unique page to make your connection.

I am thinking on this one. I am not sure I am on the right track, but this is an interesting problem. I have never heard of changing the webconfig on the fly according to role, but who knows.

Beth V.

 

 
New Post
9/24/2007 2:33 PM
 

thanks for the info Beth - the dilema i face is that the database and system is already in place in a desktop application and we want to have the ability to have it web-based (dnn) - same database but can be used desktop or web - we are then slowly phasing out the desktop app - we already have  a web site to support this written in asp.net but we want to migrate to dnn - we use odbc in the asp.net app as well - the databases are huge - billing db's with millions of rows per database sometimes on linked servers - this part has to stay in place - i want to be able to "switch" around the database like i can now with odbc in dnn - i have a few thoughts to try also - haven't had time to play with this yet - wondered if anyone out there is already doing this?? i'm thinking along the lines of what you said - having fields added to the roles that are the ip address of the server and the db name - from there, set the web.config - maybe have a 2nd connection - 1 to a global database and the 2nd my actual database...more thoughts....right now my users can use the same login and go anywhere they want with that name - just change the database in a dropdown - tricky, tricky!

Mary

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Dynamic DatabaseDynamic 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