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 insert errors on all of my sitesSQL insert errors on all of my sites
Previous
 
Next
New Post
7/17/2014 1:19 AM
 
OK I have discovered that the databases have been changed somehow. If I try to add a page for example I get a 'does not allow nulls error on TabOrder', table 'XXXXXXXXXXXXXXX.dbo.Tabs'; column does not allow nulls', so I went into the database and changed this table to allow nulls. After that I got an error for the same thing on another table, did the same thing by changing that to allow nulls and now I can add a page to that site. Once I had that page I tried to add a module to it, got the nulls error, changed IsDeleted in TabModule to allow nulls and now I can add a module.

So it looks like all the sites have had some weird thing happen to their databases and I now have all these sites with random disallow null values set where it should allow a null. Is there a way I can set all these back to how they should be with an SQL script? I assume that because I don't know what tables have been altered that running upgrades will fail.

 
New Post
7/17/2014 3:05 AM
 
there is either a modification in the calling code or in the stored procedure you are using.
of you allow null in these columns, you might face issues on future updates.
You should modify addTab and updateTan etc. stored procedures to add proper values for this column.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/17/2014 6:57 AM
 
That's what worries me, the only way this could happen is if someone other than me has altered either the code or the databases on a large number of my websites. I just don't understand how this could have occurred in the first place unless it was malicious.
 
New Post
7/17/2014 9:08 AM
 

I have had this condition on several  of my websites before.  The culprit was either that my transaction log had grown too large or that I had run out of database disk space.

In the second instance, I needed to truncate the history and log tables.  In the first instance, I needed to make a change to the database backup routine to truncate the transaction logs.


Regards
Hans
 
New Post
7/17/2014 10:13 PM
 

Thanks Hans, I have asked the host to check this out as an option.

I have done some A-B comparisons of a fresh install and looks like the columns are set as they should be so they haven't been changed. Also as a test i took one of the sites and moved it to another server environment, created a new database and restored it from a backup. Got the same insert errors on that copy of the site.

Totally confused now.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SQL insert errors on all of my sitesSQL insert errors on all of my sites


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