-
Bug
-
Resolution: Fixed
-
High
-
4.0.0, 4.0.1, 4.0.2, 4.0.3
Backup fails with the error below when using SQL Server 2008 or newer database configured as SQL Server 2005 database. The error is:
Backing up sql...
1 rows written, 0 of 76 tables completed.
422 rows written, 1 of 76 tables completed.
425 rows written, 3 of 76 tables completed.
426 rows written, 3 of 76 tables completed.
432 rows written, 4 of 76 tables completed.
Error reading database: Cannot encode value for unsupported column type: "datetime" (93) of column .created_date
Backup failed
As explained in Migrating to SQL Server SQL Server type needs to be specified when setting up database. SQL Server 2005 support was dropped in FishEye/Crucible 3.3 and it will be removed in future versions completely (CRUC-7712).
No workaround
As the SQL Server 2005 and SQL Server 2008+ schema versions differ, there is no easy fix for the problem yet. Changing SQL Server type in Crucible database settings won't help.
Fix
We fixed the issue and will release in the next point release. This will restore the backup capability.
Updating schema
4.0.4 release will workaround the problem of DB using old schema. If you want to update your schema to use correct SQL Server 2012 types, follow these steps:
- Update to 4.0.4 (to be released very soon)
- Update DB setting from "Type=SQLServer 2005" to "Type=SQLServer 2012"; do not update the URL, so no migration will be triggered (click 'Save', not 'Save & Migrate').
- Perform backup
- Restore backup
The restored backup will set up the correct schema for SQL Server 2012.
- is caused by
-
CRUC-7712 Improve SQL Server configuration
- Not Being Considered
- relates to
-
CRUC-7721 Backup of Oracle DB fails due to unknown type TIMESTAMP (93)
-
- Closed
-
-
FE-6466 Backup of Oracle DB fails due to unknown type TIMESTAMP (93)
-
- Closed
-
- was cloned as
-
FE-6521 Backup of misconfigured SQL Server DB fails due to unknown type "datetime" (93)
-
- Closed
-
Form Name |
---|
I have finally found time to perform a backup & restore. Can you please tell me the way to verify my schema is now indeed using SQL Server 2012 schema? Does the following logs from the restore tool makes any sense?
Restoring to: jdbc:jtds:sqlserver://***:1433;databaseName=****;
Dropping existing tables...
Creating table definitions...
INFO - Creating DB schema version 95 using C:****\fecru\sql\SQLSERVER2008\schema\tables_95.sql
1 rows written, 0 tables completed.
422 rows written, 1 tables completed.
425 rows written, 3 tables completed.
426 rows written, 3 tables completed.
...
...
...
Adding database constraints...
INFO - Creating DB constraints version 95 using C:****\fecru\sql\SQLSERVER2008\schema\constraints_95.sql
Updating database to latest version...
Backup restored successfully.
INFO - Shutting down cross-repo lucene index
INFO - Shutdown in progress...
INFO - Shutting down DB.
INFO - *** application context closed ***