Closed roman-yagodin closed 6 years ago
Roman, sorry for the late reply.
You need to make sure, TurboDNN has been executed, prior to running TurboSchema. This should remove all issues displayed in your report. You may run TurboDNN without applying TurboSchema afterwards, but this will not provide you with the real performance improvement.
regarding the first error: are there two tabs with same parent and taborder, maybe one deleted? SELECT * FROM dbo.tabs where ParentID = 142 and TabOrder = -1 Is one of both deleted?
I will check it out, thanks.
It looks like I do have some duplicates with same ParentID and TabOrder.
I think I should try to re-apply TurboDBConfig and TurboDNN on a untouched database from backup first and check again. I'll inform you about the results.
This time a get another error (now then applying TurboDNN script):
Conflict of the ALTER TABLE statement with the FOREIGN KEY constraint "FK_Feedback_Modules".
The conflict occurred in the database "Dnn804Copy", the table "dbo.Modules", column 'ModuleID'.
Roman, regarding the duplicate tabs: is one of each deleted and the other not?
regarding FK issue: is there a line number mentioned by chance? Which version of Feedback module do you have installed? Thanks, Sebastian
Roman,
would you mind to check, whether there are moduleID values in your Feedback table, which have no corresponding entry in Modules table by running the following statement:
SELECT * FROM dbo.Feedback WHERE ModuleID NOT IN (SELECT ModuleID FROM dbo.Modules)
If would be nice if you could check in database backup from before Turbo execution, whether there was a foreign key from feedback to modules and whether it is enabled by running
"SELECT name, is_disabled, is_not_trusted, delete_referential_action_desc FROM sys.foreign_keys WHERE Name Like 'FK_Feedback_Modules'.
Thank you
Thanks, Sebastian!
The foreign key exists in the original database, the SELECT name, is_disabled, is_not_trusted, delete_referential_action_desc FROM sys.foreign_keys WHERE Name Like 'FK_Feedback_Modules
gives:
name | is_disabled | is_not_trusted | delete_referential_action_desc |
---|---|---|---|
FK_Feedback_Modules | 0 | 1 | CASCADE |
There are indeed orphaned records in the Feedback table with non-existent ModuleID, so I've cleaned them up by DELETE FROM dbo.Feedback WHERE ModuleID NOT IN (SELECT ModuleID FROM dbo.Modules)
After that TurboDNN and TurboSchema scripts were applied w/o any issues.
I've got following errors then I try to apply TurboSchema script after TurboDBConfig and TurboDNN scripts successfully applied:
Original messages (in russian):
Messages, translated with Google:
DNN 8.0.4 SQL Server 2012