原文 A Beginner’s Guide to the OUTPUT Clause in SQL Server T-SQL supports the OUTPUT clause after the inception of SQL server 2005 and later editions. We can use the OUTPUT clause with DML statements (INSERT, DELETE, UPDATE) to return information from…
Complete list of Microsoft SQL Server trace flags (585 trace flags) REMEMBER: Be extremely careful with trace flags, test in your test environment first. And consult professionals first if you are the slightest uncertain about the effects of your cha…
https://support.microsoft.com/en-us/help/832524/sql-server-technical-bulletin-how-to-resolve-a-deadlock How to identify a deadlock Step 1 To identify a deadlock, you must first obtain log information. If you suspect a deadlock, you must gather inform…
从SQL Server 2005 SP 起,SQL 开始支持数据库镜像.它的设计目的是试图为SQL Server 提供一个具有实时性数据同步的灾难恢复技术,即能够提供数据冗余备份,切换起来比较方便.每个主体数据库只能有一个镜像数据库.镜像数据库作为主体数据库的一个副本,在主体数据库发生故障.不可访问时能够迅速恢复数据库访问,提供故障恢复功能.镜像数据库一直处于"恢复"状态,因此不能被直接访问. 一.什么是数据库快照 为了提高资源的使用率,想让镜像数据库可以承担部分读,可以借助数据库快照…