Upgrades Questions on upgrading to version 6.x.
Version 6.x > Upgrades > 5.5R2 -> 6.0 Upgrade DB error(s) View modes: 
User avatar
Member
Member
charles.johnson1-bayer - 1/10/2013 8:47:42 AM
   
5.5R2 -> 6.0 Upgrade DB error(s)
When trying to upgrade a site from 5.5R2 to 6.0, we are receiving an error when the installer reaches 90% of the SQL upgrade. Below is the error that is showing:


-- Update version document name in version history
BEGIN
DECLARE @nodeXML as nvarchar(max);
DECLARE @versionHistoryID as int;
DECLARE @start as int;
DECLARE @end as int;

DECLARE @historyCursor CURSOR;

SET @historyCursor = CURSOR FOR SELECT NodeXML, VersionHistoryID FROM CMS_VersionHistory;

OPEN @historyCursor
FETCH NEXT FROM @historyCursor INTO @nodeXML, @versionHistoryID;
WHILE @@FETCH_STATUS = 0
BEGIN
-- Update document name
SET @start = PATINDEX('%<documentname>%', @nodeXML);
SET @end = PATINDEX('%</documentname>%', @nodeXML);

IF @start > 0 AND @end > @start
UPDATE CMS_VersionHistory SET VersionDocumentName = SUBSTRING(SUBSTRING(@nodeXML, @start + 14, @end - @start - 14), 0, 100) WHERE VersionHistoryID = @versionHistoryID;
ELSE
UPDATE CMS_VersionHistory SET VersionDocumentName = '' WHERE VersionHistoryID = @versionHistoryID;

-- Update document type
SET @start = PATINDEX('%<documenttype>%', @nodeXML);
SET @end = PATINDEX('%</documenttype>%', @nodeXML);

IF @start > 0 AND @end > @start
UPDATE CMS_VersionHistory SET VersionDocumentType = SUBSTRING(SUBSTRING(@nodeXML, @start + 14, @end - @start - 14), 0, 50) WHERE VersionHistoryID = @versionHistoryID;
ELSE
UPDATE CMS_VersionHistory SET VersionDocumentType = '' WHERE VersionHistoryID = @versionHistoryID;

FETCH NEXT FROM @historyCursor INTO @nodeXML, @versionHistoryID;
END
CLOSE @historyCursor;
DEALLOCATE @historyCursor;
END

Failed to run SQLscript: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.


Any help in getting around this would be appreciated. There were no issues upgrading to 5.0, 5.5 or 5.5R2 for this same site.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/10/2013 9:10:31 AM
   
RE:5.5R2 -> 6.0 Upgrade DB error(s)
Hi,

I guess you have used the upgrade tool. If so, the issue and solution is the same as in this forum thread.

Best regards,
Juraj Ondrus