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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Installing Package File HTML_Community_05.01.02_Install: Error!Installing Package File HTML_Community_05.01.02_Install: Error!
Previous
 
Next
New Post
8/7/2009 9:41 AM
 

Solved

I was still running sql server 2000

upgraded to sql2005 expres and the upgrade went 100% OK

 

 
New Post
8/9/2009 6:03 AM
 

Unfortunately, this is not my case. Our SQL Server IS 2005 (Build 4035), and the DB's in question are running in 2005 compatibilty mode (90).

Open to other suggestions.



 
New Post
8/9/2009 6:52 AM
 

For the record:
http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=10508

FYI Future DNN 5 versions (not 5.1.x one assumes) may require SQL Server 2005 minimum. I would aim towards this platform, or future proof further by using SQL Server 2008.



Alex Shirley


 
New Post
8/18/2009 11:25 AM
 

After more and more digging I found the problem.

I Did to installs with copies of the same database. The first is SQL2005 and that went OK.

The second, my production machine is a SQL2000 and that is creating the trouble.

I extracted the file 05.01.00.SqlDataProvider from HTML_Community_05.01.02_Install.zip

and I executed this file in queryanayser. This is what I get:

(2295 row(s) affected)
(2295 row(s) affected)

Server: Msg 207, Level 16, State 3, Line 1
Invalid column name 'DesktopHtml'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'CreatedByUser'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'CreatedDate'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'CreatedByUser'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'CreatedDate'.

(1 row(s) affected)
(1 row(s) affected)
(2295 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)

I restored everthing and executed the script step by step to find the problem. But going step by step no errors!

Then I executed bigger parts of the script and Yes the errors came back. This is the part:

IF NOT EXISTS (select * from dbo.sysobjects where id = object_id(N'dbo.HtmlTextLog') and OBJECTPROPERTY(id, N'IsTable') = 1)
 BEGIN
  update dbo.HtmlText
  set    Content = DesktopHtml,
      Version = 1,
      IsPublished = 1,
      CreatedByUserID = CreatedByUser,
      CreatedOnDate = CreatedDate,
      LastModifiedByUserID = CreatedByUser,
      LastModifiedOnDate = CreatedDate

  ALTER TABLE dbo.HtmlText
   DROP COLUMN DesktopHtml, DesktopSummary, CreatedByUser, CreatedDate

  CREATE TABLE dbo.HtmlTextLog
   (
   HtmlTextLogID int NOT NULL IDENTITY (1, 1),
    ItemID int NOT NULL,
    StateID int NOT NULL,
    Comment nvarchar(4000),
    Approved bit NOT NULL,
    CreatedByUserID int NOT NULL,
    CreatedOnDate datetime NOT NULL
   )  ON [PRIMARY]

  ALTER TABLE dbo.HtmlTextLog ADD CONSTRAINT
   PK_HtmlTextLog PRIMARY KEY CLUSTERED
   (
   HtmlTextLogID
   ) ON [PRIMARY]

  CREATE TABLE dbo.HtmlTextUsers
   (
   HtmlTextUserID int NOT NULL IDENTITY (1, 1),
    ItemID int NOT NULL,
    StateID int NOT NULL,
    ModuleID int NOT NULL,
    TabID int NOT NULL,
    UserID int NOT NULL,
    CreatedOnDate datetime NOT NULL
   )  ON [PRIMARY]

  ALTER TABLE dbo.HtmlTextUsers ADD CONSTRAINT
   PK_HtmlTextUsers PRIMARY KEY CLUSTERED
   (
   HtmlTextUserID
   ) ON [PRIMARY]

  ALTER TABLE dbo.HtmlText WITH NOCHECK ADD CONSTRAINT
   FK_HtmlText_WorkflowStates FOREIGN KEY
   (
   StateID
   ) REFERENCES dbo.WorkflowStates
   (
   StateID
   ) ON UPDATE  NO ACTION
    ON DELETE  NO ACTION
    NOT FOR REPLICATION

  ALTER TABLE dbo.HtmlTextLog WITH NOCHECK ADD CONSTRAINT
   FK_HtmlTextLog_HtmlText FOREIGN KEY
   (
   ItemID
   ) REFERENCES dbo.HtmlText
   (
   ItemID
   ) ON UPDATE  NO ACTION
    ON DELETE  CASCADE
    NOT FOR REPLICATION

  ALTER TABLE dbo.HtmlTextLog WITH NOCHECK ADD CONSTRAINT
   FK_HtmlTextLog_WorkflowStates FOREIGN KEY
   (
    StateID
   ) REFERENCES dbo.WorkflowStates
   (
   StateID
   ) ON UPDATE  NO ACTION
    ON DELETE  NO ACTION
    NOT FOR REPLICATION

  ALTER TABLE dbo.HtmlTextUsers WITH NOCHECK ADD CONSTRAINT
   FK_HtmlTextUsers_HtmlText FOREIGN KEY
   (
   ItemID
   ) REFERENCES dbo.HtmlText
   (
   ItemID
   ) ON UPDATE  NO ACTION
    ON DELETE  CASCADE
    NOT FOR REPLICATION
 END
GO
 

 

Especially this part is producing the errors

set    Content = DesktopHtml,
      Version = 1,
      IsPublished = 1,
      CreatedByUserID = CreatedByUser,
      CreatedOnDate = CreatedDate,
      LastModifiedByUserID = CreatedByUser,
      LastModifiedOnDate = CreatedDate

After these errors the rest of this block is not executed and you end up with no HTML text in your portals and a lot of errors.

Because the step by step methode worked I decided to cut this block in to after:

ALTER TABLE dbo.HtmlText
   DROP COLUMN DesktopHtml, DesktopSummary, CreatedByUser, CreatedDate

I inserted:

END
GO

IF NOT EXISTS (select * from dbo.sysobjects where id = object_id(N'dbo.HtmlTextLog') and OBJECTPROPERTY(id, N'IsTable') = 1)
 BEGIN
 

And Yes! it executed with no errors. I am not a SQL guru, mayby there is one who can explain! Again it is a SQL2000 machine. My SQL2005 machine did'n experience this problem.

 

so far so good, but not so good ! packing if back in the zipfile etc. Rolling back and installing :-) again an error in teh same module. This one I could not figure out.

But rolling back,  removing the HTML_Community_05.01.02_Install.zip from the package and installing again, went OK, and the succes came with installing the faulty module via Host --> module definitions etc.

 

I hope you get some inspiration from this!

p.s where can I find the install log from the modules??

 
New Post
8/21/2009 8:10 AM
 

I've done some testing on this and can't recreate. Based on your step by step, I can guess that this is actually a memory problem - when sql server is altering table's it copies the table to the temp database, creates a new version (with the altered schema) and then copies the records back. It seems in your case you're running out of space hence the errors. Adding additional BEGIN and END, simply flushes the commands to sql server meaning it builds up less temporary data - its slightly slower but in limited memory scenarios might help. I'll see about altering the scripts to flush commands more quickly.


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Installing Package File HTML_Community_05.01.02_Install: Error!Installing Package File HTML_Community_05.01.02_Install: 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