I'm trying to create a geodatabase in an SQL Server database after connecting to it with the CreateDatabaseConnectionString function. I get a success message running this function and save the output as connect_str. In the example script from the function documentation, they seemed to simply replace a feature layer with the connecting string object like so:
arcpy.Buffer_analysis(data_conn_str, r"c:\temp\Buffers.shp", "10 Miles")
I tried creating a GDB by providing the connection string to the CreateFileGDB function: arcpy.CreateFileGDB_management(connect_str, 'my_gdb.gdb')
I'm not supplying the entire error message because it includes server login information:
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: File GDB Location: Dataset CIMDATA=<CIMStandardDataConnection xsi:type='typens:CIMStandardDataConnection' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/3.1.0'><WorkspaceConnectionString>
(removed server login info here)
</WorkspaceConnectionString><WorkspaceFactory>SDE</WorkspaceFactory><DatasetType>esriDTAny</DatasetType></CIMStandardDataConnection> does not exist or is not supported
Failed to execute (CreateFileGDB).