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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumMove Forum data to another portal instanceMove Forum data to another portal instance
Previous
 
Next
New Post
8/23/2010 12:39 AM
 
We left the forums module in place as they were in the old portal so the moduleid should be the same. The only thing that has changed are the posts and new users have been added to the portal.
 
New Post
8/23/2010 12:48 AM
 
So if everything is the same except for new posts and new users, what exactly has to be moved over? I am confused on why you are trying to do this. Are you attempting to port data from the latest 'production' instance back to the old install? I can't think of a reason you would do this, I mean why not just copy production?

It sounds like you are trying to 'merge' two installs which were, at one time, the same thing (and one of those is frozen in time at a point where they were the same). I highly recommend avoiding this. To do this, you would need a pretty detailed cursor or a copy of RedGate SQL Data Compare to port the data over for you. Considering the time it would take and the cost of the tool, I would recommend just buying the tool to do it for you if you absolutely must do this. Still, I am having difficulty understanding why this would need to be done though. 

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
8/23/2010 1:59 AM
 
Chris,

The only thing that needs to be moved over are the posts that have been added since we took the copy of production. We have not added any forums. We just need to copy all of the latest posts from the forums.. thats all. By looking at the tables, it appears that I would just need to import the Forum_threads and forum_posts data.

Todd
 
New Post
8/23/2010 2:29 AM
 
Its not exactly that simple because of keys, you have to first create a post for each thread and in turn create a new thread (using the destination's new postid as the new threadid, then update the post you just inserted with the newthreadid). Then, you need to have this 'newthreadid' matched up with the old one so you can then import all posts associated w/ the old threadid (to import as the new threadid). This requires also making sure you have the proper parentid (which is a postid and since you are creating a new postid this will require updating the parentid's as you insert into posts of destination db) so I recommend doing this all in sequential order (based on source db). Keep in mind, a single thread with say 10 posts could in theory have 10 different parentid's with one of those being 0 (the first post is always 0). If you still feel you need to go down this route, you should probably consider making temporary columns in the destination to store the OldThreadID to help work out problems. 

Either before the above or after (but prior to viewing), you need to get the Forum_Users over (which would require something like a select into... where source UserID + PortalID combo NOT IN(... destination Forum_Users), probably done w/ a CURSOR). You do this to make sure a forum user's record exists. 

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
8/23/2010 10:12 AM
 
Chris,

Thank you for feedback and help on this. It may be best to just take a copy of the production Forum tables and move them to production. There have been only about 5 new users in the forums since we took the copy. I would rather preserve the data from production. It is to risky to try to match the keys and risk corrupting the installation.

Are there any other considerations for moving the data? On the old and new Forum Module, we are on version 4.5.3.

Respecfully,

Todd

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumMove Forum data to another portal instanceMove Forum data to another portal instance


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