1. EXEC sys.sp_tables  
  2. EXEC sp_help  
  3. EXEC sys.sp_columns  
  4. EXEC sys.sp_helpconstraint  
  5. SELECT SERVERPROPERTY('ProductLevel')  
  6. SELECT DATABASEPROPERTY('AdventureWorks2008R2''Version')  
  7. SELECT DATABASEPROPERTYEX('AdventureWorks2008R2''Collation')  
  8. SELECT OBJECTPROPERTY(OBJECT_ID(N'HumanResources.Employee'), 'TableHasPrimaryKey')  
  9. SELECT COLUMNPROPERTY(OBJECT_ID(N'HumanResources.Employee'), N'LoginID''AllowsNull')  
  10.  
  11.  
  12. -- 详细参数和枚举参数请查阅MSDN