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...SQL QueySQL Quey
Previous
 
Next
New Post
7/18/2008 8:43 AM
 

I had a problem with one of my sites a few weeks ago, essentially the database corrupted and the backup provided by my ISP failed.

The original site had over 3500 users which I would like to reimport to the new site.

The tables Users and UserProfile contains all the necessary information I need to compile a spreadsheet and reimport using Bulk User Manager, however I lack the necessary SQL skills in order to manipulate the two tables in order to view the data in any meaningful way.

The database was populated from dotnetnuke version 4.5.x

The table details are:

Table Name: Users

Columns: UserID, Username, FirstName, LastName, IsSuperUser, AffliateID, Email, DisplayName, UpdatePassword

Table Name: UserProfile

Columns: ProfileID, UserID, PropertyDefinitionID, PropertyValue, PropertyText, Visibility, LastUpdatedDate

I am looking to create view where each user is listed with each PropertyDefinitionID as a column and the corresponding PropertyValue underneath.

Thanks in advance

 
New Post
7/18/2008 9:09 AM
 

I have a script that should get you most of the way there:


DotNetNuke Modules from Snapsis.com
 
New Post
7/18/2008 9:12 AM
 

you need also table PropertyDefinitions to get the names of properties.

I suggest to use MS Access to access those tables in the SQL Database, if possible, then create a Pivot Query and join it with users table.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/21/2008 10:18 AM
 

With custom profile properties and the like Sebastian's recommendation is most likely your best bet to get a clean and easy to create SQL Query.

Otherwise there are many consultants out there that would be able to write something for you at a small cost.  You can e-mail me at msellers@iowacomputergurus.com if you would rather not do this yourself.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SQL QueySQL Quey


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