Hot answers tagged arcsde
Esri deprecated use of the ArcSDE application server (giomgr and gsrvr processes) in favor of exclusive Direct Connect connections at 10.2 (there are no 10.3 application server binaries). ArcGIS 10.1 and 10.2 added a number of tools to replace the deprecated tools like sdemon, and 10.3 added more. The Do This, Not That! – Alternatives to using SDE command ...
Kirk is right on the money, with the exception of one statement. If your mapservice url is public, and you have an ArcGIS Online account, you can create an app without coding. As long as you have access to the internet, it is possible to create webmaps and applications in ArcGIS Online that reference an instance of ArcGIS Server that is behind a ...
Have you considered using the arcpy ChangeVersion_management() tool? From the ESRI Help page: "Each input feature layer or table view will have its workspace modified to connect to the requested version." It's pretty straightforward and doesn't require a new connection file or modify the existing connection file. You just pass the features you want ...
I have slightly modified another script I had laying around which should do what you want, using Insert Cursors and Update Cursors. It does require you to specify the name of your unique ID field (can't be ObjectID). It also has no error checking (I didn't need it for what I was doing but as you're modifying SDE feature classes it may be wise to add some!) ...
Esri's Attribute Assistant has a tool called Generate ID which will automatically generate a new ID whenever a new feature is created. These IDs can be created per feature class to generate different IDs for different feature classes, and can be created based on a specific template if required.
You could upgrade to a Standard level license to achieve this. There is no need for an Advanced level license to write to ArcSDE, although it can.
An alternative option to get your fc and fd paths is to use arcpy.da.walk. This code snippet will provide the path of empty fd: walk = arcpy.da.Walk(workspace, datatype="FeatureDataset") for dirpath, dirnames, filenames in walk: print dirpath
I have used a script similar to Peter's up above and had good luck, although his is better. One thing to point out that might trip someone up is if you are using 64 bit python geoprocessing and you have ArcFM loaded on top of ESRI, it will fail on all features that have been set to use ArcFM or Designer with a ERROR 000260. This is because you have to use 32 ...
Only top voted, non community-wiki answers of a minimum length are eligible