Get schema and object name from object_id

To get schema and object name from known object_id in SQL Server:

select O.name as Object_Name, S.name as Schema_Name from sys.objects O
inner join sys.schemas S on O.schema_id=S.schema_id
where O.object_id = 85575343

If the post helped you, please share it:
Pin It

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">