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 ...deleted a table too many.. now I can not login as host or admin!deleted a table too many.. now I can not login as host or admin!
Previous
 
Next
New Post
6/2/2009 8:44 AM
 

Hi all!

It seems I did the most stupid thing: I was copying the mssql-database to a new server to test on the new server, but I got it wrong and started to delete the tables on the new server. At some point I have also started to delete the tables one my existing db - I deleted the three top most on the list dbo.Affiliates, dbo.Announcements and dbo.AnonymousUsers. I tried to restore these from the backup, but now I cannot log on as host or admin (normal users log on fine). When I try to logon as Host or Admin I get the message: Critical Error Object reference not set to an instance of an object displayed just on top of the first html-text module on the page, and the rest of the page shown as it appears when not logged on. Thus I can not logon and also not see the admin control panel. Normal users are able to logon, even register new accounts, and use the wite just fine (I have a "normal user test user" ID). It's just the admin and host accounts that do not work (tried both types of userIDs - both host and local admin)

Does anybody have a clue what I might have screwed up when deleting and then trying to restore the top three tables on the db? What is it with any of these tables that should cause this problem?

Is there an easy way to force a "re-install" the current dnn-version over the corrupted existing one, but still keeping the content in the databases in place? Or is the hard way (new install) the only option - start from zero?

Anyone have a tip on the best and most reliable mssql database backup tool for backing up and restoring mssql-db on a shared hosting environment. I use the DataAdmin3, but it seems to confuse more than it helps as to how to do things. I normally use MS SQL Server Management Studio Express, but this does not allow for local backup's to my PC or restore from such, nor for server side backup and restore controlled by me.

Any help would be appreciated. Thanks!

 
New Post
6/2/2009 12:06 PM
 

In your situation I would recommend one of two approaches.

1.) Contact your hsoting provider, and roll back to a known good backup, you might loose a day of activity, but it will be simple as cake to do.

2.) Contact your hosting provider and obtain a copy of the most recent backup.  Then use a tool such as SQL Compare to determin what objects are missing in the current production database.  You can then sync out the changes.

Overall, the BEST and true way to backup a database is to use a native SQL backup.  Even if you have to ask your hosting provider for this on a regular basis, it is the only real true, easy way to be sure that you have a full backup.


-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
 
New Post
6/2/2009 12:20 PM
 

OJ-
Have you tried creating a test account and then granting that account super-user status via the bit in the USERS table?  That test should tell you if your issue is with your former admin / host accounts or if the issue has to do with just being an admin/host.  It won't fix the problem but, if the account works after granting superuser status, it will help you host your site for now and possibly give you additional clues to the cause of the issue.
 
That said, I agree with Mitch that the safest thing you can do would be to do a full restore from a "full" DB backup as performed by your hosting provider.
 
Good luck!
-mamlin


esmamlin atxgeek.me
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...deleted a table too many.. now I can not login as host or admin!deleted a table too many.. now I can not login as host or admin!


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