Stephen, thanks. Appreciate you chiming. I realize that connection_info is a dictionary. But I wasn't sure how to use it. Keyword "database' only updates the database. I'm actually trying to switch this to use a different account (new 'user' and 'password') and was hoping to do so using a new SDE connection file. Can you maybe not to do?
If you look at the other keys in the dict, I need more than 'database' to be updated.
{'authentication_mode': 'DBMS',
'database': 'Prod',
'dbclient': 'sqlserver',
'db_connection_properties': 'myserver',
'password': '<*********>',
'instance': 'sde:sqlserver:myserver',
'server': 'myserver',
'user': 'myaccount',
'version': 'dbo.DEFAULT'}
I am not an expert on these SDE connection files. But my understanding has always been that they store a reference to DB server/instance, DB name, authentication (and/pr password). So basically what's in the dictionary above. So merely updating 'database' in the dict wouldn't be sufficient, I think. To be safe, I tried it, and to no effect.