Syntax of OBJECT_ID Function :
OBJECT_ID ('object')
object is a name of database object. It is of type char or nchar.
Return type of OBJECT_ID function is an integer.
Examples of OBJECT_ID Function :
Example 1 : Use of OBJECT_ID function in select clause
SELECT OBJECT_ID('Customers')
Output
917578307
Above example returns object id of customers object in northwind database.