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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

June FBC25 Carousel

Fabric Monthly Update - June 2025

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