Useful system stored procedures in SQL Server

后端 未结 12 967
醉话见心
醉话见心 2021-01-30 03:17

I recently discovered that I could use the sp_help to get a table definition and have been hooked onto it since then. Before my discovery, I had to open up the Obje

12条回答
  •  自闭症患者
    2021-01-30 03:47

    All of these undocumented ones

    xp_getnetname 
    
    xp_fileexist 
    
    xp_dirtree 
    
    xp_subdirs 
    
    sp_who2
    
    xp_getfiledetails 
    
    xp_fixeddrives 
    
    Sp_tempdbspace 
    
    xp_enumdsn 
    
    xp_enumerrorlogs
    
    sp_MSforeachtable 
    
    sp_MSforeachDB 
    

    See here: Undocumented stored procedures

    And now since SQl Server 2005 all the Dynamic Management Views like sys.dm_db_index_usage_stats

提交回复
热议问题