Mega Code Archive

 
Categories / MSSQL / System
 

Returning a Database Object Name and ID

3> 4> SELECT OBJECT_ID('Employee'), OBJECT_NAME(1253579504) 5> GO ----------- ------------------------------------------------------------------------------------------------------------ --------------------        NULL NULL (1 rows affected) 1>