Skip to content

SQL Server timestamp column exported to wrong format #755

@feilbaca

Description

@feilbaca

I'm currently experimenting with exporting from SQL Server to SIARD and back (using dbptk 4.3.0) and have come across an issue with data types.

Many of our tables have a timestamp (aka rowversion) type column, and it's currently being converted into varchar(8). Unfortunately this means that column values are truncated on import resulting in the table inserts failing:

java.sql.BatchUpdateException: String or binary data would be truncated in table 'IIHWTImportTest.dbo.tbAllodyniaSymptoms', column 'AllodyniaSymptoms_Timestamp'. Truncated value: '00000000'.

I believe the correct data type would be varbinary(8). I've amended the metadata.xml to test, and the table data imported successfully.

Metadata

Metadata

Assignees

Labels

bugIssue type

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions