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  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Show data from individuel user databases
Previous Previous
 
Next Next
New Post 3/7/2006 11:55 AM
User is offline Claus Elmann
1 posts
10th Ranked


Show data from individuel user databases 

I would like to develop a custom module that displays data from the currently logged in users database.

Each of my users has a “private” SQL database e.g.

User

Database

User1

C29001

User2

C29002

User3

C29003

When User1 logs in, the module should show data in dbo.C29001.tablename
When User2 logs in, the module should show data in dbo.C29002.tablename
And so on

All my stored procedures are added to all user databases, so a can get data by using dbo.C29001.StoredProcedureName or dbo.C29002.StoredProcedureName and so on.

The problem is to figure out where in the code I can specify individual database names based on the logged in user.

NB! The database user (dbo) is the same for all databases, only database name differs!

In previous I would just replace the database name in the connection string, runtime, but I am not sure what to do In DotNetNuke multi tier.

Any guidelines will be appreciated

Regards

Claus

 

 

 
New Post 5/16/2006 12:07 AM
User is offline Mattias Andersson
7 posts
10th Ranked


Re: Show data from individuel user databases 
I'm looking for something similar, I want to use a second database that contains a lot of information for my intranet portal. This follows the good old strategy of separating the presentation (DNN) from the information (SQL data).
There should be a simple way to make multiple SQL providers, right?
 
New Post 5/16/2006 12:57 AM
User is offline Nina Meiers
1713 posts
5th Ranked




Re: Show data from individuel user databases 

I know someone who has built a website pulling data in from several locations - I believe they did use a module from http://www.xepient.com - but not being a developer, I can't tell you how to do this, but can only tell you of how someone did something very quickly using a module that allows to pull in third party information into a DNN site.

Nina Meiers


Nina Meiers - XD Design - Professional, Ethical and passionate about DotNetNuke
Over 50 FREE DotNetNuke Skins

XD Design - xd.com.au by Nina Meiers
 
New Post 5/16/2006 3:12 PM
User is offline Sebastian Leupold
13634 posts
www.deutschnetnuke.de
1st Ranked












Re: Show data from individuel user databases 
Modified By Sebastian Leupold  on 5/16/2006 6:20:26 PM)

Please rethink the structure of your data  having a table with identical structure for each user is - frankly said - rubbish.

Do add a cloumn "UserID" and use it as a parameter, when querying to data.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Show data from individuel user databases
 


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.

 


R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com
Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com

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