we are facing issue when writing the data into dwh for datetime2 column

MadhuVamsi 32 Reputation points
2022-10-21T06:41:38.313+00:00

Hi team ,

we have a date column in the table , and we are writing the data into dwh , in DWH we have created a table with datetime2 ,

column datetime2 not null,

when we give nvarchar() we are able to load the data but when we declare datetime2 , we are facing issue like the below -

Unexpected error encountered filling record reader buffer: IllegalArgumentException: Must be 12 bytes.

can you please help us in case if it supports .

@PRADEEPCHEEKATLA hope you will clarify us .

Thanks and Regards

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,381 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,539 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.