摘要:
--windows机器名 sysprep.exe 勾选通用,并关机 --实例名 SELECT @@SERVERNAME ,serverproperty('servername') if serverproperty('servername') <> @@servername begin declar 阅读全文
摘要:
IOPS = DISK Transfer/sec = Disk Reads/sec + Disk Writes/sec 用来判断是否繁忙引起的磁盘性能问题还是本身磁盘存在性能问题 不建议超过1w/sec 阅读全文
摘要:
# -*- coding: utf-8 -*- '''python coded by written in 2016/8/31 Used for get win os log for each windows server''' '''pymssql 帮助文档http://pymssql.org/e 阅读全文
摘要:
# -*- coding: utf-8 -*- '''python coded by written in 2016/8/31 Used for get win os log for each windows server''' '''pymssql 帮助文档http://pymssql.org/e 阅读全文
摘要:
--调优SQL --sqlreview ->logshipping -> ag辅助副本 --查看正确的执行计划 打开实际的执行计划set statistics io on --查看错误的执行计划 打开实际的执行计划set statistics io on --对比 正确和错误 执行计划的差别紧盯最大 阅读全文
摘要:
错误参数类型numeric /*100001790*/select uid from voip_userextendcontactinfo with (nolock) where sipid = 111000032683159 正确参数类型nvarchar /*100001790*/select u 阅读全文
摘要:
DDL/索引重建 会申请 Sch-M锁 with (nolock) 会申请 Sch-S锁 with (nolock)会阻塞 sch-M, 同样Sch-M也会 阻塞with (nolock) 索引重建2014后,增加 WAIT_AT_LOW_PRIORITY 参数,会检测当前是否存在阻塞事务,存在则中 阅读全文
摘要:
https://www.simple-talk.com/sql/learn-sql-server/bulk-inserts-via-tsql-in-sql-server/ 阅读全文
摘要:
--将主副本改为同步模式和自动故障转移,将其中一个辅助副本改为同步辅助副本和自动故障转移 USE [master]GOALTER AVAILABILITY GROUP [TESTDB5AG]MODIFY REPLICA ON N'SINGLE1' WITH (AVAILABILITY_MODE = 阅读全文
摘要:
cmd运行sql server安装 SQL2012非群集安装_更新到最新版本.bat setup.exe /UpdateSource=.\hotfix\Latest /ACTION="Install" SQL2012非群集升级_更新到最新版本.bat setup.exe /UpdateSource= 阅读全文