Home Forums SQL Server 2008 SQL Server 2008 - General How to get schemaname, tablename, identity column, foreign key constraints RE: How to get schemaname, tablename, identity column, foreign key constraints

  • Dynamic methods are frequently problematic, but to get the data you're looking for, check out the system views available under the schema called INFORMATION_SCHEMA. They should supply you with everything you need.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning