sql-database-admin-utilty-scripts T-SQL Utility Scripts for Database Administration Shrink the size of a data file and log files Reorganize an index Rebuild an index Check the fragmentation of a rowstore or columnstore index using Transact-SQL