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  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

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
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


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
www.xd.com.au
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
13721 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.

 


TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network
ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com

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