Which is the equivalent datatype of SQL Server Timestamp datatype in Delta lake table

heta desai 247 Reputation points

I need to pull data from SQL server and write into Delta lake table using synapse pipeline. For timestamp column in SQL server I have tried using string datatype in target delta lake table but it stores junk characters. I have create synapse mapping dataflow to write data into target.

Here is the example of value stored in timestamp column in SQL Server : 0x000000002BAED0C9

Please suggest me the right datatype to use for SQL server timestamp in delta lake table.

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.
4,472 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,831 Reputation points

    Hi @Anonymous

    In Delta Lake Tables the only accepted formats are:



    Example formats:



    You will need to convert your hexadecimal format to the proper structure as seen above.


    If this is helpful please accept answer.

    0 comments No comments