Select to view content in your preferred language

Direct connection to geodatabase with API

1201
2
Jump to solution
11-29-2018 11:07 AM
HarlanMarshall
Occasional Contributor

Can I make a direct connection to our SQL Server enterprise geodatabases with API for Python? Does the API only work with AGOL or Portal?

0 Kudos
1 Solution

Accepted Solutions
JoshuaBixby
MVP Esteemed Contributor

Not directly.  It is common for ArcGIS API for Python to be installed in a Python environment that also has ArcPy, and ArcPy provides the ability to make direction connections to databases, both regular and geo-enabled.  Even if ArcGIS API for Python supported connecting directly to geodatabases, it would likely require or use ArcPy code, so adding that support doesn't add much value.

View solution in original post

2 Replies
JoshuaBixby
MVP Esteemed Contributor

Not directly.  It is common for ArcGIS API for Python to be installed in a Python environment that also has ArcPy, and ArcPy provides the ability to make direction connections to databases, both regular and geo-enabled.  Even if ArcGIS API for Python supported connecting directly to geodatabases, it would likely require or use ArcPy code, so adding that support doesn't add much value.

HarlanMarshall
Occasional Contributor

Thanks Joshua for the answer. I can use arcpy with Jupyter Notebook but do not get widgets for result display other than textual.

0 Kudos