Skip to content

SQL Server – Translate object_ids/object_names

-- Get object_id from object name
select OBJECT_ID('[dbo].[testobject]')

-- get object_name from object id
select OBJECT_NAME(213575799)