Direct connection to geodatabase with API

595
2
Jump to solution
11-29-2018 11:07 AM
HarlanMarshall
New Contributor III

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
New Contributor III

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