I am trying to upgrade a bunch of databases via Python. I am using the following command...
Difficult to pinpoint the root cause of your issue without details. Is this sql server or oracle? It could be insufficient permission of your admin account ? Are there any users connected? Have you tried upgrading the EGDB via ArcGIS Pro using GP tools using this same account?
Have you reviewed documentaction here -https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/upgrade-geodatabase.htm
Thanks, am using SQL Server. The exact same account (database connection) works in Pro using GP tools. I actually copied the python command from Pro and pasted it into my Python script. No users are connected.