Select to view content in your preferred language

Branch Versioned Feature Service

262
0
04-18-2022 07:38 AM
AnupamKumar
New Contributor

Accessing a Branch Versioned Feature Service using ArcGIS Pro SDK. 

ServiceConnectionProperties serviceConnectionProperties = new ServiceConnectionProperties(new Uri(_featureservice));
Geodatabase gdb = new Geodatabase(serviceConnectionProperties));
VersionManager verMan = gdb.GetVersionManager();
VersionDescription verDesc = new VersionDescription("TEST", "TEST", VersionAccessType.Private);
Version verCreate = verMan.CreateVersion(verDesc);
Geodatabase verGDB = verCreate.Connect();
string sqlstatement = ""UPDATE TABLENAME SET FIELDNAME = 'FIELDVAL'";
DatabaseClient.ExecuteStatement(verGDB,sqlstatement);

Can we use sql update query to update Field Values as above on a version in the geodatabase.  

Regards,
Anupam

0 Kudos
0 Replies