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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Show data from individuel user databasesShow data from individuel user databases
Previous
 
Next
New Post
3/7/2006 3:55 PM
 

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 3:07 AM
 
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 3:57 AM
 

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 My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
5/16/2006 6:12 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.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Show data from individuel user databasesShow data from individuel user databases


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