随笔分类 - SQL Server
SQL Server related
摘要:在 SQL Server 的 Always On 可用性组(AG) 中,主副本(Primary replica)和副本(Secondary replica)之间的同步模式分为 异步同步(Asynchronous commit) 和 同步同步(Synchronous commit) 两种模式。它们对数
阅读全文
摘要:SQL Server AG(Always On Availability Groups)和 FCI(Failover Cluster Instance)是两种不同的高可用性(HA)解决方案,它们用于确保SQL Server实例的高可用性和灾难恢复。虽然它们都有相似的目标——确保数据库的持续可用性,但
阅读全文
摘要:SQL Server 性能优化是一个复杂而细致的过程,涉及从数据库设计到硬件配置的各个方面。下面,我将以更详细的方式阐述 SQL Server 性能优化的最佳实践,涵盖查询优化、索引管理、数据库设计、硬件配置、并发控制等多个层面。 1. 查询优化 a. 使用适当的查询语句 **避免 SELECT *
阅读全文
摘要:SQL Server 高可用性方案架构图、原理及最佳实践 1. 数据库镜像(Database Mirroring) + + | Primary DB | | (SQL Server 1) | + + | | Transaction Logs | + + | Mirror DB | | (SQL Se
阅读全文
摘要:Migrate SQL Server to AWS Microsoft SQL Server Always On availability groups provide a high availability (HA) and disaster recovery (DR) solution for
阅读全文
摘要:Before starting our next teams session, I would like to confirm if you have fully meet the Prerequisites: https://learn.microsoft.com/en-us/sql/sql-se
阅读全文
摘要:Prerequisites & environments | HostName | CPU & MEM | Role | OS | | : : | : : | : : | : : | | node1.io | 4Core 16GB | k8s master | centos7.8 | | node2
阅读全文
摘要:Linux client login windows SQL Server with keytab https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-active-directory-authentication?view=sql
阅读全文
摘要:Pre-Work linux should join AD same as SQL Server setspn on windows SQL Server for linux Windows SQL Server C:\Users\Administrator>setspn -L sqladmin R
阅读全文
摘要:reference https://docs.microsoft.com/en-us/sql/relational-databases/indexes/reorganize-and-rebuild-indexes?view=sql-server-ver15 查询数据库索引碎片超过30%的表,然后重建
阅读全文
摘要:[root@azk8s-oc sqlmi]# head sql1-linux.yaml apiVersion: v1 data: username: c3FsYWRtaW4K password: SHVhd2VpMTIjMjMK kind: Secret metadata: name: sql1-l
阅读全文
摘要:CPU最佳实践。 根据CPU架构和核数配置MaxDop. https://learn.microsoft.com/zh-CN/sql/database-engine/configure-windows/configure-the-max-degree-of-parallelism-server-co
阅读全文
摘要:Create Azure Arc-enabled sqlmi instance using OpenShift tool Microsoft official doc reference https://docs.microsoft.com/en-us/azure/azure-arc/data/cr
阅读全文
摘要:reference https://docs.microsoft.com/en-us/azure/azure-arc/data/create-sql-managed-instance-using-kubernetes-native-tools issue encountered: failed to
阅读全文
摘要:Microsoft Troubleshooting Guide Common reasons for a full transaction log: The appropriate response to a full transaction log depends on what conditio
阅读全文
摘要:Azure data controller Setup https://docs.microsoft.com/en-us/azure/azure-arc/data/create-data-controller-direct-cli?tabs=windows create resources grou
阅读全文
摘要:修改某个数据库的文件存储位置 reference https://docs.microsoft.com/en-us/sql/relational-databases/databases/move-user-databases?view=sql-server-ver16 -- relocate dat
阅读全文
