September 30, 2009 at 11:27 am
When having a schema, how do we do what objects the schema owns?
Any input will be greatly appreciated in advance.
September 30, 2009 at 12:15 pm
there might be an easier way, but this is what i've been using:
i've got one database with three schemas "dev", "qa" and "dbo"
using this gets me all the tables,procs, etc. for a specific schema.
select * from sys.objects where schema_id = schema_id('dev')
Lowell
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply