Top 10 Most Useful MS SQL System Stored Procedures

System stored procedures are useful administrative tools. Below, you may find 10 of them which I consider as the most useful:

sp_help – info on objects in database, data types
sp_spaceused – displays space on the disk allocated to database and storage for each database objects including number of rows in the table
sp_who – returns info on currently connected users and their sessions
sp_lock – returns info on locked objects * procedure will be replaced in the future by systematic view Sys.dm_trans_locks
sp_configure – returns setting and enables changes to configuration for SQL instance
sp_tables – returns list of the tables which can be queried
sp_columns – list of the columns of database objects
sp_depends – Procedure receives argument of object and returns list of objects on which is mentioned object dependent and other way around – on which are other objects dependent (dependencies)

More on sql systematic procedures can be found on Microsoft web here

Rate this post
Category: SQL Tutorials

About Ing. Jan Zedníček - Data Engineer & Controlling

My name is Jan Zednicek, and I have been working as a freelance Data Engineer for roughly 10 years. During this time, I have been publishing case studies and technical guides on this website, targeting professionals, students, and enthusiasts interested in Data Engineering particularly on Microsoft technologies as well as corporate finance and reporting solutions. 🔥 If you found this article helpful, please share it or mention me on your website or Community forum

Leave a Reply

Your email address will not be published. Required fields are marked *