# mssql-script **Repository Path**: micqian/mssql-script ## Basic Information - **Project Name**: mssql-script - **Description**: mssql脚本汇总 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-05-19 - **Last Updated**: 2024-10-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mssql-script [![CodeFactor](https://www.codefactor.io/repository/github/xiaohuazi123/mssql-script/badge)](https://www.codefactor.io/repository/github/xiaohuazi123/mssql-script) [![TSQL](https://img.shields.io/badge/language-TSQL-blue.svg "TSQL")](https://zh.wikipedia.org/wiki/Transact-SQL) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg "Apache2.0")](https://github.com/xiaohuazi123/mssql-script/blob/master/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/xiaohuazi123/mssql-script.svg?label=Stars&logo=github "stars")](https://github.com/xiaohuazi123/mssql-script) mssql脚本汇总 汇总这么多年来使用的mssql脚本,迭代了很多次,比较稳定,一直在生产环境使用,每个脚本已经去除敏感信息。 脚本支持的数据库版本:SQL2008R2 ~SQL2016 大于SQL2016版本不保证脚本一定能用 后面脚本会不定期更新 脚本数量:54个 ### 脚本分类 - 备份还原 - 表分区 - 常用函数 - 错误日志 - 定时自动抓取耗时SQL并归档发邮件 - 脚本模块 - 镜像 - 批量脚本 - 数据库收缩 - 数据库损坏 - 数据库账号 - 统计数据库大小 - 性能 - 作业