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.0Stored Procedure to Create/Update/delete usersStored Procedure to Create/Update/delete users
Previous
 
Next
New Post
8/28/2006 3:03 PM
 
I'm trying to create a stored procedure to create, update, or delete users.  I have an external database with userid, password (unencrypted!), firstname, lastname, email, (bool)isAuthorized fields.  I am writing my stored procedure using a visual studio 2005 database project.  I want to schedule this procedure to run every 15 minutes on a table created by a trigger that I've written.  Users may become authorized, unauthorized, change passwords, added, or deleted from the table.

My problem is this:  I have located stored procedures in the dnn database for AddUser, UpdateUser, DeleteUser, but none of these accept a password as a parameter.  I also found stored procedures aspnet_membership_createuser that has password as a field, but also has passwordSalt as a field (which I'm not an encryption expert by any means).

Is it possible to write a stored procedure in c# where I can populate a datastructure with the fields I mentioned above and add or update users from the stored procedures in the database?  Do I need to run BOTH the AddUser stored procedure AND the aspnet_membership_createuser procedure?  Am I going about this in the complete wrong way?
 
New Post
8/28/2006 5:50 PM
 
Suggest you use the DNN method below to create user.  Search DNN source to find this mehotd.  Many has investigate using just the store procedure to create new users.  However, there are internal check/sync data between DNN and ASP.NET table.  You should use the DNN provide method to guarantee consistency.

UserController.CreateUser

If you use SQL 2005, theoretically you can register .NET assembly to be used in your store producedure.  Is this what you mean by saying you're developing store proc in c#?

 


Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
New Post
8/29/2006 11:07 AM
 
Yes, but as it turns out we'll not be using SQL 2005, so the CLR proc is out the window.  Thanks for your advice.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Stored Procedure to Create/Update/delete usersStored Procedure to Create/Update/delete users


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