Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
Source by dataedo.com #
 
PREVIOUS NEXT
Tagged: #table #schema #sql
ADD COMMENT
Topic
Name
5+8 =