Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 schema sql 2005

Author  Topic 

binary
Starting Member

6 Posts

Posted - 2008-11-11 : 12:51:10
hello
can we quey a system table to see all objects belonging to a specific schema under sql 2005, for exemple i want to see all objects belonging to humanressource schema...thank you

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-11-11 : 13:02:18
select so.name from sys.objects so
inner join sys.schemas sc
on sc.schema_id = so.schema_id
where sc.name = 'Humanresources'
and so.type ='U'
Go to Top of Page
   

- Advertisement -