Hi
As an automatic function I have not seen, but in case of MSSQL Server this scripts and the following link can help you: STX (geometry Data Type) | Microsoft Docs
use Demo_GNX
go
Drop view OutPutView
go
Create View OutPutView as
(SELECT ET.Codigo
,ET.Shape
,ET.Shape.STCentroid().STX as X
,ET.Shape.STCentroid().STY as Y
,ET.Shape.STCentroid().STSrid as STSrid
FROM Demo_GNX.DBO.LimiteEntidadTerritorial as ET)
go
SELECT * FROM OutPutView
go
For the other RDBMS check ST_Geometry in ArcGIS Pro, see the link:
Databases and ST_Geometry—ArcGIS Pro | Documentation
Reinaldo.