You can set the database full path as the environment settings using arcpy.env.workspace = <database file pth> then reference the table or use the file path C:\Users\<username>\AppData\Roaming\ESRI\Desktop10.x\ArcCatalog\<databasename>.sde\<table>