Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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;
Comment

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
Comment

PREVIOUS NEXT
Code Example
Sql :: prestashop alter table if not exists 
Sql :: regex any word except sql 
Sql :: sql multiple into 
Sql :: sqlalchemy database uri 
Sql :: convert sql to linq online converter 
Sql :: sql not null constraint 
Sql :: what is the use of @JoinColumn(name="ID", referencedColumnName = "ID") 
Sql :: mysql remove bad character from all fields 
Sql :: horizontal join sqlite 
Sql :: Find Last Fractal Function MQL4 
Sql :: sql varchar(255) 
Sql :: sql equal then arrow 
Sql :: pgsql commit rollback example 
Sql :: snowflake last query id 
Sql :: hierachichal sql query 
Sql :: oracle test if 0 
Sql :: mysql beautifier terminla 
Sql :: heavy table in mysql 
Sql :: ring SQLite sqlite_execute 
Sql :: get the next column of a table in mysql 
Sql :: row_number equivalent MS Access for sequential id By Group (3) 
Sql :: online t-sql editor 
Sql :: mysql get nested records 
Sql :: find Overlapping sql 
Sql :: distinct data types in a table sql query 
Sql :: how to ignore the data based on specific keywords? 
Sql :: sql cheetsheet 
Sql :: Uninstall mysql community server in centos 7 
Sql :: distinct 
Sql :: ltrim entire column sql select query 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =