﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / InstantForum.NET 4.x / User / App Integration / Community Support  / Importing Users into the DB / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Fri, 21 Nov 2008 21:58:26 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>&lt;FONT color=#111111 size=2&gt;The general steps which you are taking look to be correct, below is an excerpt of SQL I'm running to insert users into the Forums tables, hopefully you'll be able to spot some difference between this and yours.&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#111111&gt;If you post a similar (modified if necessary) bit of SQL I'll take a look for anything that looks odd/wrong.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#808080 size=2&gt;[code]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO Forums.dbo.InstantASP_Users &lt;/P&gt;&lt;P&gt;(emailaddress, username, [password], PrimaryRoleID, OurID)&lt;/P&gt;&lt;P&gt;VALUES (&lt;/P&gt;&lt;P&gt;coalesce(@email, &lt;a target="_blank" href="mailto:'noemail@noemail.com'"&gt;'noemail@noemail.com'&lt;/A&gt;), &lt;/P&gt;&lt;P&gt;coalesce(@username, 'nousername'),&lt;/P&gt;&lt;P&gt;coalesce(@password, 'nopasword'),&lt;/P&gt;&lt;P&gt;2, @OurID &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;SET @lastid=scope_identity()&lt;/P&gt;&lt;P&gt;-- set up permissions&lt;/P&gt;&lt;P&gt;INSERT INTO Forums.dbo.InstantASP_UsersRoles&lt;/P&gt;&lt;P&gt;(userID, roleID)&lt;/P&gt;&lt;P&gt;VALUES&lt;/P&gt;&lt;P&gt;(@lastid, 3)&lt;/P&gt;&lt;P&gt;-- set up user table 2&lt;/P&gt;&lt;P&gt;INSERT INTO Forums.dbo.InstantForum_Users&lt;/P&gt;&lt;P&gt;(userID, permissionID)&lt;/P&gt;&lt;P&gt;VALUES&lt;/P&gt;&lt;P&gt;(@lastID, 0)&lt;/P&gt;&lt;P&gt;-- set up users folders&lt;/P&gt;&lt;P&gt;INSERT INTO Forums.dbo.InstantForum_Folders&lt;/P&gt;&lt;P&gt;(UserID, FolderName, Inbox, sortorder)&lt;/P&gt;&lt;P&gt;VALUES&lt;/P&gt;&lt;P&gt;(@lastID, 'PMFolder_InBox', 1, 1)&lt;/P&gt;&lt;P&gt;INSERT INTO Forums.dbo.InstantForum_Folders&lt;/P&gt;&lt;P&gt;(UserID, FolderName, DeletedItems, sortorder)&lt;/P&gt;&lt;P&gt;VALUES&lt;/P&gt;&lt;P&gt;(@lastID, 'PMFolder_DeletedItems', 1, 2)&lt;/P&gt;&lt;P&gt;INSERT INTO Forums.dbo.InstantForum_Folders&lt;/P&gt;&lt;P&gt;(UserID, FolderName, SentItems, sortorder)&lt;/P&gt;&lt;P&gt;VALUES&lt;/P&gt;&lt;P&gt;(@lastID, 'PMFolder_SentItems', 1, 3)&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#808080 size=2&gt;[/code]&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 08 Aug 2008 10:38:39 GMT</pubDate><dc:creator>Justin Crabtree</dc:creator></item><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>I've done the following as the post suggests:&lt;/P&gt;&lt;P&gt;1.  insert user into  InstantASP_Users&lt;BR&gt;2.  insert into  InstantASP_UsersRoles&lt;BR&gt;3.  insert user into  InstantForum_Users&lt;BR&gt;4.  insert three PM folders into  InstantForum_Folders&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;    After items 1-3, I was able to login but it would say I was logged in as guest.  Once I completed step 4, I now get an ASP.NET error.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;    Exception Type:        System.NullReferenceException&lt;BR&gt;Exception Message:     Object reference not set to an instance of an object.&lt;BR&gt;Exception Source:      InstantASP.InstantForum.UI&lt;BR&gt;Exception Target Site: BuildRightOptions&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;    Any ideas to why this would not work?  We'd like to bulk register our users so I'm first attempting to create one with direct sql inserts to test.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;    &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;    Thanks!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;    &lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;/FONT&gt;</description><pubDate>Tue, 15 Jul 2008 19:16:55 GMT</pubDate><dc:creator>scieszynski</dc:creator></item><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>[quote][b]DigiChaos (5/21/2005)[/b][hr]Ok, I figured out the issue. I had to do one more step...&lt;P&gt;- For each user create a row for the three PM folders "PMFolder_InBox", "PMFolder_SentItems", and "PMFolder_DeletedItems" in the table InstantForum_Folders.&lt;/P&gt;&lt;P&gt;This resolves my problem :w00t:[/quote]&lt;P&gt;This information has helped me today :) I was going nuts trying to figure out why my  registration form was not creating accounts properly in IF til I remembered your post :w00t:</description><pubDate>Sun, 29 May 2005 21:05:27 GMT</pubDate><dc:creator>fadi</dc:creator></item><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>Hi All,&lt;/P&gt;&lt;P&gt;I've uploaded some updated documentation which offers a little guidance on this...&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;FONT color=#800080&gt;&lt;a target="_blank" href="http://support.instantasp.co.uk/FindPost6756.aspx"&gt;http://support.instantasp.co.uk/FindPost6756.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;See specifically the "Existing User Integration" section. Hope this helps a little. The documentation is not yet complete and i'm very happy to take any suggestions for any additional information you find useful.&lt;/P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;</description><pubDate>Mon, 23 May 2005 12:38:06 GMT</pubDate><dc:creator>Ryan Healey</dc:creator></item><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>Great work, this will help the rest of us when we port our users :)</description><pubDate>Sun, 22 May 2005 14:57:15 GMT</pubDate><dc:creator>fadi</dc:creator></item><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>Awesome... I'm actually going to rate this topic with a bunch of stars...&lt;/P&gt;&lt;P&gt;Thanks, much!!</description><pubDate>Sat, 21 May 2005 20:34:46 GMT</pubDate><dc:creator>Bare</dc:creator></item><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>Ok, I figured out the issue. I had to do one more step...&lt;/P&gt;&lt;P&gt;- For each user create a row for the three PM folders "PMFolder_InBox", "PMFolder_SentItems", and "PMFolder_DeletedItems" in the table InstantForum_Folders.&lt;/P&gt;&lt;P&gt;This resolves my problem :w00t:</description><pubDate>Sat, 21 May 2005 17:38:59 GMT</pubDate><dc:creator>DigiChaos</dc:creator></item><item><title>RE: Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>I wish I could help.. but I'm not scheduled to start my user import script until this upcoming week..  Obviously, anything you could offer, in regards to tips &amp;amp; tricks (through your experience) would be greatly appreciated.</description><pubDate>Sat, 21 May 2005 15:26:21 GMT</pubDate><dc:creator>Bare</dc:creator></item><item><title>Importing Users into the DB</title><link>http://community.instantasp.co.uk/Topic6750-61-1.aspx</link><description>So, I am working on an import script that will import the Users from my SQL database into the InstantForum database. I am 99.9% of the way there but I am running into one small problem. Here are the steps I am taking to import... am I missing anything?&lt;P&gt;- Insert my Users into InstantASP_Users, setting PrimaryRoleID to 2&lt;BR&gt;- Insert Users from InstantASP_Users into InstantForum_Users, setting PermissionID to 2&lt;BR&gt;- Inserting a row into InstantASP_UsersRoles for each UserID (RoleID = 1)&lt;BR&gt;- Inserting a row into InstantASP_UsersRoles for each UserID (RoleID = 2)&lt;/P&gt;&lt;P&gt;I can see all the users in the database, the system allows me to login with one of the users.... but... Once the login is successfull it looks as though I am still logged in as a guest and I am not logged in at all.</description><pubDate>Sat, 21 May 2005 14:44:07 GMT</pubDate><dc:creator>DigiChaos</dc:creator></item></channel></rss>