Hello there Sebastian,
I ran your query to eliminate the problem in the feedback module and tried running turboDNN742 script again.
This time I got a different error:
System.Data.SqlClient.SqlException (0x80131904): The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_CAT_AdvCatProducts_Products". The conflict occurred in database "dotnetnuke2", table "dbo.CAT_Products", column 'ProductID'.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script)
ClientConnectionId:c13da449-a345-4e16-bb82-e5f63fe2fdcd
Error Number:547,State:0,Class:16
-- drop AF foregn keys with known issues:
IF EXISTS (SELECT * FROM Sys.Foreign_Keys WHERE Parent_Object_id = OBJECT_ID(N'dbo.[activeforums_ForumTopics]')
AND name = N'FK_activeforums_ForumTopics_activeforums_Replies')
ALTER TABLE dbo.[activeforums_ForumTopics]
DROP CONSTRAINT [FK_activeforums_ForumTopics_activeforums_Replies]
-- make sure, all constraints are enabled
IF (ServerProperty(N'EngineEdition') != 5) --Check for not running on SQL Azure
EXEC sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"