Collecting tables information using procedure sp_tables_info
December 11, 2000Stored procedure sp_tables_info is designed to provide information required for tables' optimization process. For the database given as a parameter (by default current connected database will be chosen) it will go through each user table and will collect indexes and constrains information.
Proper indexes and constrains implementation strategy is essential for database performance and must be selected very carefully. Constrains support referential integrity between tables. Indexes are used for faster data access.
Procedure will display the following information:
I suggest creating this procedure in master database. This way stored procedure can be called from any connection by any user defined in master database.
If you have any questions or would like to suggest how to improve this procedure feel free to contact me at email@example.com. You input is greatly appreciated.