Get StoredProcedure,Trigger,Function Name with counts From DataBase

  1. select name as StoredProcedureName from sys.procedures   
  2. select count(*) as ProcedureCount from sys.procedures   
  3. select count(*) as TriggerCount from sysobjects where type='TR'  
  4. Select name as TriggerName from sysobjects where type='TR'  
  5. select count(*) as FunctionCount from sysobjects where type='FN'  
  6. Select name as FunctionnName from sysobjects where type='FN'