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

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

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 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.