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...5.1.0 -> 5.1.1 upgrade: 05.01.01.SqlDataProvider Error!5.1.0 -> 5.1.1 upgrade: 05.01.01.SqlDataProvider Error!
Previous
 
Next
New Post
7/28/2009 5:13 PM
 


Trying upgrade from 5.1.0 to 5.1.1 on my test installation i got this error.

System.Data.SqlClient.SqlException: Column name 'LogEventID' does not exist in the target table or view.
Could not create constraint. See previous errors.
at System.Data.SqlClient.SqlConnection.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)

/************************************************************/
/***** SqlDataProvider *****/
/***** *****/
/***** *****/
/***** Note: To manually execute this script you must *****/
/***** perform a search and replace operation *****/
/***** for dbo. and *****/
/***** *****/
/************************************************************/


/* Fix bug in changing the primary key of EventLog Table */
/*********************************************************/

--Some scenarios had the primary key as PK_EventLog
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'PK_EventLog'))
BEGIN
ALTER TABLE dbo.EventLog
DROP CONSTRAINT PK_EventLog

ALTER TABLE dbo.EventLog
ADD CONSTRAINT PK_EventLogMaster PRIMARY KEY CLUSTERED ( LogEventID )
END

Thanks, Sandro


Sandro De Matteis Microsoft IT Pro: Enterprise Admin, Enterprise Messaging Admin Technology Specialist: Microsoft Virtualization Dnn portals: http://www.dbdog.it , http://www.royalcrestgoldn.it, http://www.retrieversclub.it
 
New Post
7/28/2009 5:55 PM
 

Sandro did you have any errors with 5.1.0 - did you attempt to fix them or not? Just trying to diagnose the cause.
There was a similar sort of error for 5.1.0 (which had no impact) that was fixed, this could be a spin off.

Can you provide this and further info by logging an issue at support.dotnetnuke.com stating the URL of this page.

Many thanks...



Alex Shirley


 
New Post
7/28/2009 9:34 PM
 

Ok so the fix for the 5.1.0 Script error didn't account for the column not being added in the 5.1.0 script.

As with the original issue it is not critical (it is a nuisance as you don;t get the perf improvements with a different index)

We will get it right in 5.1.2 :)


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...5.1.0 -> 5.1.1 upgrade: 05.01.01.SqlDataProvider Error!5.1.0 -> 5.1.1 upgrade: 05.01.01.SqlDataProvider 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