arcpy.ArcSDESQLExecute() cannot return Global ID (GUIDs) for datasets in an SQL Server database.
Last Published: July 23, 2019ArcSDE/Enterprise Geodatabase
Bug ID Number
April 27, 2015
November 4, 2023
Operating System Version
7 64 Bit
This issue was not reproducible when tested by the development team. Issues may be given this status when they cannot be reproduced or are no longer relevant in a development version of the software, but a specific fix was not installed to address the issue. The issue's Additional Information section may contain further explanation.
Unable to reproduce this issue as submitted. If this is still an issue in the current version, please contact Esri Support Services.
Convert the Global ID field to nvarchar.
conn= arcpy.ArcSDESQLExecute(r'Database Connections\sde_user1.sde')
conn.execute('select convert(nvarchar(50),GlobalID)from sde.user1.cities')