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...Custom Registration questionsCustom Registration questions
Previous
 
Next
New Post
6/21/2010 7:02 AM
 
Hello Sebastian,

Thank you for your additional responses.

Yes, it is good news that the few fields that I need to duplicate are at least stored in one column as traditional columns.  It will make it neater to duplicate.

Just to re-iterate my intentions:

1) All usernames and passwords will be handled by DNN Exclusively

2) User Creation will be handled by DNN Exclusively

3) On Creation of a user, I will execute and sql to insert a base Person in my people table.  All I will have populated at that point will be the following columns
PersonId, FirstName, Surname, DNNUserId.  The execution of this sql is one time only.  No chain of events to worry about here.

4) I may create a trigger to update the users table which will do as follows "Set Users.FirstName People.FirstName, Users.LastName = People.LastName where People.UserId = Users.UserId"
This is one directional syncing and I hope it will be easy to maintain.

The downside with this solution is that if the user goes to their profile and makes a change, they will loose it next time they change their People.*Name details.


My instinct at this point is that it is not a big issue, but I can try to improve it later by making the syncing bi-directional.

Can you think of any other easy, simple way I can implement bi-directional syncing?  I worry about triggers firing indefinitely.  Users Triggers People, People Triggers Uers, Users Triggers People again etc

Thanks Sebastian

Mark





Mark Breen Ireland 1987 BMW R80 g/s
 
New Post
6/23/2010 6:41 PM
 
Mark,
I would create a create and update trigger for users to update your peoples table and an update trigger for your peoples table (both times update only, if there are different values, to avoid circular dependencies, i.e. infinite loops)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/25/2010 4:26 AM
 
Hello Sebastian, I have implemented the two triggers and in the development system they seem to be working perfectly. I am going to buy Data Springs full collection today and use that to create the rest of the registration and log in functionality. Thanks for your hints and when I finalise the triggers, I will post them back here, hopefully for someone elses use again.

Mark Breen Ireland 1987 BMW R80 g/s
 
New Post
6/25/2010 4:36 AM
 
Great to hear, Mark, I am looking forward to your solution :)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Custom Registration questionsCustom Registration questions


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