Connecting to SDE

Discussion created by ScottB on Oct 30, 2012
Latest reply on Nov 5, 2012 by ScottB
How do I connect to an SDE database from a box running ArcServer only?

On a box with ArcGIS Desktop I would use the "Data connections\sde database\table" methodology. But that does not work on an ArcServer only environment.

Orders_T = "Database Connections\\DB.sde\\User.ORDER_T"
where_c2 = 'Job_Key = ' + str(LC) + " AND ORDER_ID = " + str(OrderID)
cur = arcpy.SearchCursor(Orders_T, where_c2)