Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Ask the Fabric Databases & App Development teams anything! Live on Reddit on August 26th. Learn more.

Reply
bexy
Frequent Visitor

How to insert a value into a table of datatype datetime2 in Fabric Datawarehouse

When I was trying to insert as 

 

update table_name

set column_name = '0000-00-00 00:60:00.00'

 

Getting error as : Conversion failed when converting date and/or time from character string

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @bexy ,

Thanks for using Fabric Community. It looks like there might be ome compatibility issues using 0000-00-00 00:60:00.00

Try use below code -

update [ware_house].[dbo].[table1]
set [created_date] = '0001-01-01 00:59:00.00'

 
Hope this is helpful. Do let me know incase of further queries.

View solution in original post

3 REPLIES 3
bexy
Frequent Visitor

Thanks

Anonymous
Not applicable

Hi @bexy ,

Glad to know that your issue got resolved. Please continue using Fabric Community on your further queries.

Anonymous
Not applicable

Hi @bexy ,

Thanks for using Fabric Community. It looks like there might be ome compatibility issues using 0000-00-00 00:60:00.00

Try use below code -

update [ware_house].[dbo].[table1]
set [created_date] = '0001-01-01 00:59:00.00'

 
Hope this is helpful. Do let me know incase of further queries.

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.