It would be nice if the arcpy Describe function would return the database name you are connected to.
For example:
>>> print arcpy.Describe(r"c:\temp\scratch.gdb").databaseName
File Geodatabase
>>> print arcpy.Describe(r"c:\temp\someconnection.sde").databaseName
Oracle
>>> print arcpy.Describe(r"c:\temp\someconnection.sde").databaseName
PostGRESql
etc...
This would really help in developing the slight SQL differences between databases in handling of specific datatypes.
Thank you