hjelmsmark

Geoprocessing a Database View

Discussion created by hjelmsmark on Nov 1, 2012
Thanks for the CreateDatabaseView_management tool, creating sde view's is now quite easy.

But how can I use the view in my script tools?

If I work in ArcMAP I'm asked to identify the OID column, which then enables further use.

How do I avoid getting the ERROR 000339 (view has no OID column) in my script tool? I need to make a selectbylocation..
My tool workes in 10 with view's created with the sdetable create_view command.

Is there a solution or do I have to go back to SDE commands?

Outcomes