Learn More





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 ...database connection errordatabase connection error
New Post
12/5/2013 12:38 PM

Hi all, I hope somebody can help me I have been running this site for 5 years now but recently I started having some problems that cannot be fixed.


The site was working until yesterday night, today it gives this error:


DNN Error

Connection To The Database Failed

I have searched about this error and I found posts and solutions about new installs, but this site was already running, is not a new install.


I had a previous problem of not being able to edit users or roles that haven´t been fixed, I don´t know if its related. I upgraded the site to the latest DNN version three weeks ago to try to fix it, it didn't fixed and the site was still running after the upgrade.

I checked web.config and the parameters are ok, and used them to access the database on SQL server management studio, I can see the database, run queries in to it, etc. 

what I see is that the database is too large, it is 513MB and only two tables use most of the space

_EventLog 37408KB

-SiteLog 424656 KB

This is really strange because since I migrated from hosting service about a year ago the log site was not working whenever I tried to see it on DNN I got a message saying that the hosting didn't allowed logs. 

Any help will be highly appreciated. 

New Post
12/6/2013 3:34 AM
if you have limited database size, you may free up space by running "Truncate Table Eventlog" and "Truncate Table SiteLog".
Please check size of Database Transacction log as well, it may cause issues, if it is larger than the database file itself.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...database connection errordatabase connection 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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?