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 ...Upgrade error v4.8.0 to v.4.9.2. 04.09.01.SqlDataProviderUpgrade error v4.8.0 to v.4.9.2. 04.09.01.SqlDataProvider
Previous
 
Next
New Post
3/18/2009 5:53 AM
 

Hi all,

I get an error when trying to upgrade a DDN v4.8.0 to v4.9.2. Initialy i tried to upgrade to v5.0.1 but got to different errors, so im upgrading it in to steps to minimize confusion.

Upgrade Status Report:
....
00:00:01.382 -   Executing Script: 04.09.01.SqlDataProvider Error! (see 04.09.01.log for more information)
....

04.09.01.log:

System.Data.SqlClient.SqlException: Invalid column name 'LastActivityDate'.
Invalid column name 'LastActivityDate'.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)


CREATE PROCEDURE dbo.dnn_UpdateServer
    @ServerName   nvarchar(50),
    @CreatedDate  datetime,
    @LastActivityDate datetime
AS

 DECLARE @ServerID int
 SET @ServerID = (SELECT ServerID FROM dbo.dnn_Servers WHERE ServerName = @ServerName)

 IF @ServerID IS NULL
  BEGIN
   -- Insert
   INSERT INTO dbo.dnn_Servers (
    ServerName,
    CreatedDate,
    LastActivityDate
   )
   VALUES (
    @ServerName,
    @CreatedDate,
    @LastActivityDate
   )
  END
 ELSE
  BEGIN
   -- Update
   UPDATE dbo.dnn_Servers
    SET LastActivityDate = @LastActivityDate 
    WHERE  ServerName = @ServerName
  END

What am i doing wrong? :-)
Thanks in advance.

 
New Post
3/18/2009 6:37 AM
 

 it looks like column LastActivityDate  in table dnn_Servers has not yet been added. please login to your portal and try to create the procedure (copy paste the codestarting  from "CREATE PROCEDURE" above into the text field check "run script" and execute.

FYI: I strongly suggest to stay with DNN 4.9.2 atm and wait for DNN 5.1 before upgrading due to known issues. 


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/18/2009 8:34 AM
 

Running it through Host > SQL menu gives the same error. Obviously because the 'LastActivityDate' doesnt exist in the DB table dnn_Servers.

I wonder why the field hasn't been added by the upgrade scripts? Should i add the field manually, and run the 'CREATE PROCEDURE' script again?

Thank you for the heads up on the 5.0.1 version, i will wait and see what they come up with :)

 
New Post
3/18/2009 9:05 AM
 

I just looked through the stored procedures in the DB

The procedure its trying to create, dnn_UpdateServer, already exists. But it references the table dnn_WebServers, and not dnn_Servers as in the procedure the upgrade script is trying to create. The dnn_UpdateServer procedure didnt exist before starting the upgrade.

The table WebServers has the field 'LastActivityDate'. Which table is the right one? :-)

I used the 04.09.02 upgrade release fetched from www.codeplex.com/dotnetnuke.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade error v4.8.0 to v.4.9.2. 04.09.01.SqlDataProviderUpgrade error v4.8.0 to v.4.9.2. 04.09.01.SqlDataProvider


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