Given different data sources I would like to find out all foreign keys inside the database. The DB can be anything from SQLite to SQL Server and Oracle. Is there a generic way to do it? May be an ORM might be helpful?
There are some fine scripts on SO, like this one. But this is SQL Server specific and I want to research the generic nature of the problem.