Answers for "how to see table schema in sql server"

SQL
0

how to see table associated with a schema in sql

select schema_name(t.schema_id) as schema_name,
       t.name as table_name,
       t.create_date,
       t.modify_date
from sys.tables t
where schema_name(t.schema_id) = 'Production' -- put schema name here
order by table_name;
Posted by: Guest on June-08-2021
0

how to see table associated with a schema in sql

select s.name as schema_name, 
    s.schema_id,
    u.name as schema_owner
from sys.schemas s
    inner join sys.sysusers u
        on u.uid = s.principal_id
order by s.name
Posted by: Guest on June-08-2021

Code answers related to "how to see table schema in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language