0%
Loading ...

How to find Object ID by name at SQL Server

How to find Object ID by name at SQL Server

Example of how to find ID of tables at database according to tables name:

SELECT * 
FROM   sys.columns 
WHERE  object_id = Object_id('employees')