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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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 Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.