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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Write registration data to additional databaseWrite registration data to additional database
Previous
 
Next
New Post
12/6/2006 12:36 PM
 

Try putting the code below before this line:userCreateStatus = UserController.CreateUser(objNewUser)

Dim sConnStr As String = {MyConnectionString}
Dim cnBKTest As New SqlConnection(sConnStr)
Dim cmdTest As New SqlCommand("NameofYourStored Procedure", cnBKTest)

cmdTest.CommandType = Data.CommandType.StoredProcedure

'Create Parameters
cmdTest.Parameters.Add(New SqlParameter("@UserName", Data.SqlDbType.VarChar, 10))
cmdTest.Parameters("@UserName").Value = userControl.UserName
cmdTest.Parameters.Add(New SqlParameter("@Password", Data.SqlDbType.VarChar, 10))
cmdTest.Parameters("@UserName").Value = userControl.Password


cnBKTest.Open()
cmdTest.ExecuteNonQuery()
cnBKTest.Close()

 

 
New Post
12/6/2006 1:12 PM
 
Thanks Echo! This looks very promising!

2 quick questions: Does the connection string need the { }, and what would my connection string look like? Is it the same one in the web.config file? For instance, this: "Data Source=robinson-c8b57r\SQLExpress;Integrated Security=True;Initial Catalog=DotNetNuke"

And second, does the name of the stored procedure need to have the whole name, or just the shortname? So does it need to be "DotNetNuke.dbo.aspnet_Membership_CreateUser_Email"?

THANK YOU SOOOO MUCH FOR RESPONDING!!!
 
New Post
12/6/2006 2:04 PM
 

Is the procedure in the dotnetnuke database?

If so you could probably try this to grab it from the web.config file

Dim sConnStr As String =  ConfigurationManager.ConnectionStrings("data").ConnectionString

 
New Post
12/6/2006 2:48 PM
 
Yes it is in the DotNetNuke database.

OK...I'll try that string and see how it works. BTW, if I maunally execute the SP, pass in the Username and Password values, it runs fine. So I know the SP is good.

Is there a way I can "see" what is going on? Like maybe a msgbox that I can pass the variables into that pops up to make sure everything is going OK? It seems to just be passing through that script, or maybe it errors out and I just don't see it.

BTW, I am on AIM: bkingx and Yahoo: bkfor3 if you are available that way.
 
New Post
12/6/2006 3:10 PM
 

First of all, make sure your not modifying the core on a production environment. Second, you have to rebuild the solution. Then I would put a breakpoint in that code and run it in debug mode.

Note that modifying the core code is risky. It could really be a problem when you inevitably upgrade to a newer version of DNN.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Write registration data to additional databaseWrite registration data to additional database


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