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 ...I want to remove Portal but I got SQL errorI want to remove Portal but I got SQL error
Previous
 
Next
New Post
10/14/2014 3:51 AM
 
Also after delete users.... I lost my Admin User Also. And I can not Add Again this Admin User.
I never seen Admin in my User Account List in any sub-portals because We Remove all deleted users. But When I want to make New User by "admin" name I got following Error:

------------------------------------------------------------
A User Already Exists For the Username Specified. Please Register Again Using A Different Username.
-------------------------------------------------------------
 
New Post
10/14/2014 3:58 AM
 
Michael Tobisch wrote:

Armin,

you could try to delete the records from the UsersPortals table that refer to the deleted portal by entering the following command under Host :: SQL:

DELETE FROM {databaseOwner}{objectQualifier}UsersPortal WHERE PortalId=x

(replace x with the PortalId of the deleted portal)

Happy DNNing!
Michael

 

I run your Query dear michael

DELETE FROM {databaseOwner}{objectQualifier}UsersPortal WHERE PortalId=0

DELETE FROM jaamchina_com_.dbo.UsersPortal WHERE PortalId=0

In both I got following Error:

There is an error in your query!

 

 
New Post
10/14/2014 4:09 AM
 

Dear guys

My big Problem is, I can not Update Site Settings after:

1.Delete All Spam Registered  Users

2. Remove All Deleted Users by Query "RemoveAllDeletedUsers.sql"  (with Error, not completed)

3. Delete Old Portal (Portal "0")

4. Upgrade to DNN 7.3.3

5. Run This Query: "FixGetPortalSettings732.sql"

6. Shrink Database from 6GB to 730MB (It's Large also it should be about 70MB)

In this Position Every thing is Ok but 3 Big Problem remain yet:

A. Database is Big yet, I think removing deleted users from DB is has been not complete. How can I do to Clear All?

B. I can Not Add User because I got Message that This User is already exist but I don't have same user in my User List.

C. I can not Update Site Settings and I got following Error. IT IS IMPORTANT, How can Fix it?

 

Error: Site Settings is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DesktopModules.Admin.Portals.SiteSettings.UpdatePortal(Object sender, EventArgs e) --- End of inner exception stack trace ---
 
New Post
10/14/2014 4:25 AM
 
please check size of the database files (In SSMS, right click database node and select shrink files).
If transaction log is bigger, you'll need to shink it by performing a backup with truncate log.
Otherwise try shrinking each of the database files, that has significant free space.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/14/2014 4:34 AM
 
Sebastian Leupold wrote:
please check size of the database files (In SSMS, right click database node and select shrink files).
If transaction log is bigger, you'll need to shink it by performing a backup with truncate log.
Otherwise try shrinking each of the database files, that has significant free space.

 Dear Sebastian, How about this:

 C. I can not Update Site Settings and I got following Error. IT IS IMPORTANT, How can Fix it? and that Error?

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...I want to remove Portal but I got SQL errorI want to remove Portal but I got SQL error


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