SQL SERVER System Functions


Most SQL Server system functions are property functions, which were introduced in SQL Server 7.0 and greatly enhanced in SQL Server 2000. SQL Server 2005 and 2008 have enhanced these functions still further. 


Property functions give us individual values for many SQL Server objects and also for SQL Server databases and the SQL Server instance itself. The values returned by the property functions are scalar as opposed to tabular, so they can be used as values returned by SELECT statements and as values to populate columns in tables. 


Here is the list of property functions available in SQL Server 2008: 

  • SERVERPROPERTY 
  • COLUMNPROPERTY 
  • DATABASEPROPERTY 
  • DATABASEPROPERTYEX 
  • INDEXPROPERTY  
  • INDEXKEY_PROPERTY 
  • OBJECTPROPERTY 
  • OBJECTPROPERTYEX 
  • SQL_VARIANT_PROPERTY 
  • FILEPROPERTY  
  • FILEGROUPPROPERTY  
  • TYPEPROPERTY  
  • CONNECTIONPROPERTY 
  • ASSEMBLYPROPERTY