The OBJECTPROPERTY()
function in SQL Server enables you to check an object for a specific property.
You can use this function to check whether an object is a system table or not. To do this, pass the object ID as the first argument, and IsSystemTable
as the second argument. The function returns a 1
or a 0
depending on whether or not it’s a system table (1
means that it is a system table, and 0
means that it’s not).