As recommended by some of you I tried to run the script 5.02.00 manually from the DNN SQL interface and I got the following errors. Should I tried to run the other script as well? I dont want to damage anything :(
System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'FriendlyName' in table 'dbo.Schedule' 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 FriendlyName to Schedule Table */ /**************************************/ ALTER TABLE dbo.Schedule ADD FriendlyName nvarchar(200) NULL System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'CacheMethod' in table 'dbo.TabModules' 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 CacheMethod column to TabModules */ /****************************************/ ALTER TABLE dbo.TabModules ADD CacheMethod varchar(50) NULL System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'CultureCode' in table 'dbo.PortalSettings' 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) /***************************/ /* Localisation changes */ /***************************/ ALTER TABLE dbo.PortalSettings ADD CultureCode nvarchar(10) NULL System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'CultureCode' in table 'dbo.Tabs' 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.Tabs ADD CultureCode nvarchar(10) System.Data.SqlClient.SqlException: There is already an object named 'PortalLocalization' 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) /* updated scripts for localisation v2 */ CREATE TABLE dbo.[PortalLocalization]( [PortalID] [int] NOT NULL, [CultureCode] nvarchar(10) NOT NULL, [PortalName] [nvarchar](128) NOT NULL, [LogoFile] [nvarchar](50) NULL, [FooterText] [nvarchar](100) NULL, [Description] [nvarchar](500) NULL, [KeyWords] [nvarchar](500) NULL, [BackgroundFile] [nvarchar](50) NULL, [HomeTabId] [int] NULL, [LoginTabId] [int] NULL, [UserTabId] [int] NULL, [AdminTabId] [int] NULL, [SplashTabId] [int] NULL, [CreatedByUserID] [int] NULL, [CreatedOnDate] [datetime] NULL, [LastModifiedByUserID] [int] NULL, [LastModifiedOnDate] [datetime] NULL ) System.Data.SqlClient.SqlException: There is already an object named 'InsertPortalLocalization' 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.[InsertPortalLocalization] @PortalID int, @CultureCode nvarchar(10), @PortalName nvarchar(128), @LogoFile nvarchar(50), @FooterText nvarchar(100), @Description nvarchar(500), @KeyWords nvarchar(500), @BackgroundFile nvarchar(50), @HomeTabId int, @LoginTabId int, @UserTabId int, @AdminTabid int, @SplashTabId int, @CreatedByUserID int AS INSERT INTO dbo.[PortalLocalization] ([PortalID] ,[CultureCode] ,[PortalName] ,[LogoFile] ,[FooterText] ,[Description] ,[KeyWords] ,[BackgroundFile] ,[HomeTabId] ,[LoginTabId] ,[UserTabId] ,[AdminTabId] ,[SplashTabId] ,[CreatedByUserID] ,[CreatedOnDate] ,[LastModifiedByUserID] ,[LastModifiedOnDate]) VALUES ( @PortalID, @CultureCode, @PortalName, @LogoFile, @FooterText, @Description, @KeyWords, @BackgroundFile, @HomeTabId , @LoginTabId , @UserTabId, @AdminTabid, @SplashTabId , -1, getdate(), -1, getdate() ) System.Data.SqlClient.SqlException: There is already an object named 'GetPortalSetting' 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.[GetPortalSetting] @PortalID int, @SettingName nvarchar(50), @CultureCode nvarchar(50) AS SELECT CASE WHEN LEFT(LOWER(dbo.PortalSettings.SettingValue), 6) = 'fileid' THEN (SELECT Folder + FileName FROM dbo.Files WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = dbo.PortalSettings.SettingValue ) ELSE dbo.PortalSettings.SettingValue END AS SettingValue FROM dbo.PortalSettings WHERE PortalID = @PortalID AND SettingName = @SettingName System.Data.SqlClient.SqlException: Invalid column name 'PortalName'. Invalid column name 'LogoFile'. Invalid column name 'FooterText'. Invalid column name 'Description'. Invalid column name 'KeyWords'. Invalid column name 'BackgroundFile'. Invalid column name 'HomeTabId'. Invalid column name 'LoginTabId'. Invalid column name 'UserTabId'. Invalid column name 'AdminTabId'. Invalid column name 'SplashTabId'. 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) /* script to move settings for portal default langugage here*/ /* migrate portal values to portalsettings */ DECLARE @PortalID int DECLARE @PortalName nvarchar(128) DECLARE @LogoFile nvarchar(50) DECLARE @FooterText nvarchar(100) DECLARE @Description nvarchar(500) DECLARE @KeyWords nvarchar(500) DECLARE @BackgroundFile nvarchar(50) DECLARE @HomeTabId int DECLARE @LoginTabId int DECLARE @UserTabId int DECLARE @AdminTabId int DECLARE @SplashTabId int DECLARE @DefaultLanguage nvarchar(10) --Iterate through each portal DECLARE Portals_Cursor CURSOR FOR SELECT PortalID, PortalName, LogoFile, FooterText, Description, KeyWords, BackgroundFile, HomeTabId, LoginTabId, UserTabId, AdminTabId, SplashTabId, DefaultLanguage FROM dbo.Portals OPEN Portals_Cursor --get first FETCH NEXT FROM Portals_Cursor into @PortalID, @PortalName, @LogoFile, @FooterText, @Description, @KeyWords, @BackgroundFile, @HomeTabId, @LoginTabId, @UserTabId, @AdminTabId, @SplashTabId, @DefaultLanguage WHILE @@FETCH_STATUS = 0 BEGIN exec dbo.InsertPortalLocalization @PortalID,@DefaultLanguage, @PortalName, @LogoFile, @FooterText, @Description, @KeyWords, @BackgroundFile, @HomeTabId, @LoginTabId, @UserTabId, @AdminTabId, @SplashTabId, -1 --also update portalsettings to correct default language UPDATE dbo.PortalSettings SET CultureCode=@DefaultLanguage where PortalID=@PortalID FETCH NEXT FROM Portals_Cursor into @PortalID, @PortalName, @LogoFile, @FooterText, @Description, @KeyWords, @BackgroundFile, @HomeTabId, @LoginTabId, @UserTabId, @AdminTabId, @SplashTabId, @DefaultLanguage END CLOSE Portals_Cursor DEALLOCATE Portals_Cursor System.Data.SqlClient.SqlException: ALTER TABLE DROP COLUMN failed because column 'PortalName' does not exist in table 'Portals'. 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.Portals DROP COLUMN [PortalName] ALTER TABLE dbo.Portals DROP COLUMN [LogoFile] ALTER TABLE dbo.Portals DROP COLUMN [FooterText] ALTER TABLE dbo.Portals DROP COLUMN [Description] ALTER TABLE dbo.Portals DROP COLUMN [KeyWords] ALTER TABLE dbo.Portals DROP COLUMN [BackgroundFile] ALTER TABLE dbo.Portals DROP COLUMN [HomeTabId] ALTER TABLE dbo.Portals DROP COLUMN [LoginTabId] ALTER TABLE dbo.Portals DROP COLUMN [UserTabId] ALTER TABLE dbo.Portals DROP COLUMN [AdminTabId] ALTER TABLE dbo.Portals DROP COLUMN [SplashTabId] System.Data.SqlClient.SqlException: Column names in each table must be unique. Column name 'ModuleTitle' in table 'dbo.TabModules' 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) /* tabmodules */ ALTER TABLE dbo.TabModules ADD [ModuleTitle] [nvarchar](256) NULL ALTER TABLE dbo.TabModules ADD [Header] [ntext] NULL ALTER TABLE dbo.TabModules ADD [Footer] [ntext] NULL