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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Upgrading error Upgrading error
Previous
 
Next
New Post
3/4/2009 10:04 PM
 

Hi.

I am upgrading from 5.0 to 5.01.

I uploaded all the files, and then tried the url. I get a message: Current Assembly Version: 05.00.01   Current Database version: 05.00.00. Executing Script: 05.00.01 SqlDataProvider error.

I'm inexperienced (obviously) and need help on what to do next.

Thanks,
Steven

 

 
New Post
3/9/2009 12:35 PM
 

Did you backup the site/db before performing the upgrade? If so I would restore the backup

To find the error you should be able to find a 5.0.1 log file in the \Providers\DataProviders\SqlDataProvider folder, you might post the error here in a reply so I can help diagnose what went wrong.

Chris

 


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/9/2009 9:05 PM
 

I guess I am a little more experienced, but had the same error. So it doesn't matter if you just got started or started with v1 like me you can still have issues. The years of experience have definitely taught me one thing... well two. Do backups and that DNN is the best community ever.

This is in development and so I have a little time time before I have to restore. Thanks for any ideas.

Here is the issue from my error log. I hate that it is so long, but I figured the complete thing would help.

And I meant to say that I cannot actually find anything wrong with my site. It looks like everything is there and I have ActiveSocial running and it works. What could I check to see if there are problems? I can always revert back to my backup when needed.

System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'PackageID' in table 'dbo.Dashboard_Controls' is specified more than once.
   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)

IF (SELECT COUNT(*) FROM syscolumns WHERE [Name] = 'PackageID' AND id = object_id('dbo.Dashboard_Controls')) = 0
 BEGIN
  ALTER TABLE dbo.Dashboard_Controls
   ADD PackageID int NOT NULL CONSTRAINT DF_Dashboard_Controls_PackageID DEFAULT -1
 END

System.Data.SqlClient.SqlException: Cannot drop the procedure 'dbo.GetSkinPackage', because it does not exist or you do not have permission.
   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)

/* Fix GetSkinPackage Procedure */
/********************************/

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.[GetSkinPackage]') AND OBJECTPROPERTY(id, N'IsPROCEDURE') = 1)
 DROP PROCEDURE dbo.GetSkinPackage

System.Data.SqlClient.SqlException: Cannot drop the procedure 'dbo.GetSearchResultsByWord', because it does not exist or you do not have permission.
   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)

/* Add GetSearchResultsByWord */
/******************************/

if exists (select * from dbo.sysobjects where id = object_id(N'dbo.[GetSearchResultsByWord]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 DROP PROCEDURE dbo.[GetSearchResultsByWord]

System.Data.SqlClient.SqlException: There is already an object named 'GetSearchResultsByWord' in the database.
   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.[GetSearchResultsByWord]
 @PortalID int,
 @Word  nvarchar(100)
AS
    SELECT si.SearchItemID,
     sw.Word,
     siw.Occurrences,
     siw.Occurrences + 1000 AS Relevance,
     m.ModuleID,
     tm.TabID,
     si.Title,
     si.Description,
     si.Author,
     si.PubDate,
     si.SearchKey,
     si.Guid,
     si.ImageFileId,
     u.FirstName + ' ' + u.LastName As AuthorName,
     m.PortalId
    FROM    dbo.SearchWord sw
     INNER JOIN dbo.SearchItemWord siw ON sw.SearchWordsID = siw.SearchWordsID
     INNER JOIN dbo.SearchItem si ON siw.SearchItemID = si.SearchItemID
     INNER JOIN dbo.Modules m ON si.ModuleId = m.ModuleID
     LEFT OUTER JOIN dbo.TabModules tm ON si.ModuleId = tm.ModuleID
     INNER JOIN dbo.Tabs t ON tm.TabID = t.TabID
     LEFT OUTER JOIN dbo.Users u ON si.Author = u.UserID
    WHERE   (((m.StartDate Is Null) OR (GetDate() > m.StartDate)) AND ((m.EndDate Is Null) OR (GetDate() < m.EndDate)))
     AND (((t.StartDate Is Null) OR (GetDate() > t.StartDate)) AND ((t.EndDate Is Null) OR (GetDate() < t.EndDate)))
     AND (sw.Word = @Word)
     AND (t.IsDeleted = 0)
     AND (m.IsDeleted = 0)
     AND (t.PortalID = @PortalID)
    ORDER BY Relevance DESC

System.Data.SqlClient.SqlException: There is already an object named 'GetServices' in the database.
   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.GetServices 
 @PortalId  int,
 @UserId    int

AS
 SELECT    
  R.*,
  UR.UserRoleID,
  UR.UserID,
  UR.ExpiryDate,
  UR.IsTrialUsed,
  UR.EffectiveDate,
  U.DisplayName,
  U.Email
 FROM dbo.Users U
  INNER JOIN dbo.UserRoles AS UR ON U.UserID = UR.UserID
  RIGHT OUTER JOIN dbo.Roles AS R ON UR.RoleID = R.RoleID AND UR.UserID = @UserId
 WHERE  R.PortalId = @PortalId AND R.IsPublic = 1
 ORDER BY R.RoleName
   


System.Data.SqlClient.SqlException: Cannot drop the view 'dbo.vw_Tabs', because it does not exist or you do not have permission.
   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)

 

/* Update Tabs View */
/********************/

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.[vw_Tabs]') AND OBJECTPROPERTY(id, N'IsView') = 1)
  DROP VIEW dbo.vw_Tabs


System.Data.SqlClient.SqlException: There is already an object named 'vw_Tabs' in the database.
   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 VIEW dbo.vw_Tabs 

AS
 SELECT    
  TabID,
  TabOrder,
  PortalID,
  TabName,
  IsVisible,
  ParentId,
  [Level],
  CASE WHEN LEFT(LOWER(T.IconFile), 6) = 'fileid' THEN (SELECT Folder + FileName FROM dbo.Files WHERE 'fileid=' + CONVERT(varchar, dbo.Files.FileID) = T.IconFile) ELSE T.IconFile END AS IconFile,
  DisableLink,
  Title,
  Description,
  KeyWords,
  IsDeleted,
        SkinSrc,
        ContainerSrc,
        TabPath,
        StartDate,
        EndDate,
        Url,
        CASE WHEN EXISTS (SELECT 1 FROM  dbo.Tabs T2 WHERE T2.ParentId = T.TabId) THEN 'true' ELSE 'false' END AS HasChildren,
        RefreshInterval,
        PageHeadText,
        IsSecure,
        PermanentRedirect
 FROM dbo.Tabs AS T
   


System.Data.SqlClient.SqlException: There is already an object named 'vw_Users' in the database.
   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 VIEW dbo.vw_Users 

AS
 SELECT    
  U.UserID,
  UP.PortalId,
  U.Username,
  U.FirstName,
  U.LastName,
  U.DisplayName,
  U.IsSuperUser,
  U.Email,
  U.AffiliateId,
  U.UpdatePassword,
  UP.Authorised,
        UP.IsDeleted,
        UP.RefreshRoles,
        U.LastIPAddress
 FROM
  dbo.Users AS U
   LEFT OUTER JOIN dbo.UserPortals AS UP ON U.UserID = UP.UserId  


System.Data.SqlClient.SqlException: There is already an object named 'GetAllUsers' in the database.
   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.GetAllUsers 
    @PortalId       int,
    @PageIndex      int,
    @PageSize       int
AS
 BEGIN
  -- Set the page bounds
  DECLARE @PageLowerBound INT
  DECLARE @PageUpperBound INT
  SET @PageLowerBound = @PageSize * @PageIndex
  SET @PageUpperBound = @PageSize - 1 + @PageLowerBound

  -- Create a temp table TO store the select results
  CREATE TABLE #PageIndexForUsers
  (
   IndexId int IDENTITY (0, 1) NOT NULL,
   UserId int
  )

  -- Insert into our temp table
  INSERT INTO #PageIndexForUsers (UserId)
   SELECT UserId
   FROM   dbo.vw_Users
   WHERE  (PortalId = @PortalId OR (PortalId Is Null AND @PortalId is null )) 
    AND (IsDeleted = 0 OR IsDeleted Is NULL)
   ORDER BY UserName

  SELECT  *
  FROM    dbo.vw_Users u,
    #PageIndexForUsers p
  WHERE  u.UserId = p.UserId
   AND (PortalId = @PortalId OR (PortalId Is Null AND @PortalId is null ))
    AND (IsDeleted = 0 OR IsDeleted Is NULL)
   AND p.IndexId >= @PageLowerBound AND p.IndexId <= @PageUpperBound
  ORDER BY UserName

  SELECT  TotalRecords = COUNT(*)
  FROM    #PageIndexForUsers

 END


System.Data.SqlClient.SqlException: Cannot drop the procedure 'dbo.UpdateUser', because it does not exist or you do not have permission.
   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)

 

/* Update UpdateUser Procedure */
/**********************************************/

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.[UpdateUser]') AND OBJECTPROPERTY(id, N'IsPROCEDURE') = 1)
  DROP PROCEDURE dbo.UpdateUser


System.Data.SqlClient.SqlException: There is already an object named 'UpdateUser' in the database.
   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.UpdateUser 
 @UserID         int,
 @PortalID  int,
 @FirstName  nvarchar(50),
 @LastName  nvarchar(50),
 @Email          nvarchar(256),
 @DisplayName    nvarchar(100),
 @UpdatePassword bit,
 @Authorised  bit,
 @RefreshRoles bit,
 @LastIPAddress nvarchar(50)

AS
 UPDATE dbo.Users
  SET
   FirstName = @FirstName,
   LastName = @LastName,
   Email = @Email,
   DisplayName = @DisplayName,
   UpdatePassword = @UpdatePassword,
   LastIPAddress = @LastIPAddress
  WHERE  UserId = @UserID

 UPDATE dbo.UserPortals
  SET
   Authorised = @Authorised,
   RefreshRoles = @RefreshRoles
  WHERE  UserId = @UserID
   AND PortalId = @PortalID


System.Data.SqlClient.SqlException: There is already an object named 'GetSearchResultsByWord' in the database.
   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.GetSearchResultsByWord
 @PortalID int,
 @Word  nvarchar(100)
AS
    SELECT si.SearchItemID,
     sw.Word,
     siw.Occurrences,
     siw.Occurrences + 1000 AS Relevance,
     m.ModuleID,
     tm.TabID,
  si.Title,
     si.Description,
     si.Author,
     si.PubDate,
     si.SearchKey,
     si.Guid,
     si.ImageFileId,
     u.FirstName + ' ' + u.LastName As AuthorName,
     m.PortalId
    FROM    dbo.SearchWord sw
     INNER JOIN dbo.SearchItemWord siw ON sw.SearchWordsID = siw.SearchWordsID
     INNER JOIN dbo.SearchItem si ON siw.SearchItemID = si.SearchItemID
     INNER JOIN dbo.Modules m ON si.ModuleId = m.ModuleID
     LEFT OUTER JOIN dbo.TabModules tm ON si.ModuleId = tm.ModuleID
     INNER JOIN dbo.Tabs t ON tm.TabID = t.TabID
     LEFT OUTER JOIN dbo.Users u ON si.Author = u.UserID
    WHERE   (((m.StartDate Is Null) OR (GetDate() > m.StartDate)) AND ((m.EndDate Is Null) OR (GetDate() < m.EndDate)))
     AND (((t.StartDate Is Null) OR (GetDate() > t.StartDate)) AND ((t.EndDate Is Null) OR (GetDate() < t.EndDate)))
     AND (sw.Word = @Word)
     AND (t.IsDeleted = 0)
     AND (m.IsDeleted = 0)
     AND (t.PortalID = @PortalID)
    ORDER BY Relevance DESC


System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'URL' in table 'dbo.WebServers' is specified more than once.
   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)

 

ALTER TABLE dbo.WebServers ADD
 URL nvarchar(255) NULL


Error: Violation of PRIMARY KEY constraint 'PK_EventLogTypes'. Cannot insert duplicate key in object 'dbo.EventLogTypes'.
The statement has been terminated.

 


Forerunner Communications, LLC
DotNetNuke Integration Specialists

 
New Post
3/10/2009 12:27 AM
 

I ran into similar upgrade issues 5.0.0 (install version) > 5.0.1 (upgrade version). I am connected through the 'sa' account. Was able to get the site back up by manually creating some missing fields and procedures, but still much is missing. Similar errors running the script within DNN Sql window. Unfortunately forgot to backup prior to upgrade. Log errors follow:

System.Data.SqlClient.SqlException: Cannot find the object "dbo.Dashboard_Controls" because it does not exist or you do not have permissions.
   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)

 

IF (SELECT COUNT(*) FROM syscolumns WHERE [Name] = 'PackageID' AND id = object_id('dbo.Dashboard_Controls')) = 0
 BEGIN
  ALTER TABLE dbo.Dashboard_Controls
   ADD PackageID int NOT NULL CONSTRAINT DF_Dashboard_Controls_PackageID DEFAULT -1
 END


System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'LastIPAddress' in table 'dbo.Users' is specified more than once.
   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)

 

/* Add Columns to Users Table */
/************************************/

ALTER TABLE dbo.Users
 ADD LastIPAddress nvarchar(50) NULL


System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'IsDeleted' in table 'dbo.UserPortals' is specified more than once.
   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)

 

/* Add Columns to UserPortals Table */
/************************************/

ALTER TABLE dbo.UserPortals
 ADD
  IsDeleted bit NOT NULL CONSTRAINT DF_UserPortals_IsDeleted DEFAULT 0,
  RefreshRoles bit NOT NULL CONSTRAINT DF_UserPortals_RefreshRoles DEFAULT 0


System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'URL' in table 'dbo.WebServers' is specified more than once.
   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)

 

ALTER TABLE dbo.WebServers ADD
 URL nvarchar(255) NULL


Error: Violation of PRIMARY KEY constraint 'PK_EventLogTypes'. Cannot insert duplicate key in object 'dbo.EventLogTypes'.
The statement has been terminated.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Upgrading error Upgrading 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