<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 - sqlserver</title>
    <link>http://bbs.cqsztech.com/forum.php?mod=forumdisplay&amp;fid=60</link>
    <description>Latest 20 threads of sqlserver</description>
    <copyright>Copyright(C) 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 07 Jun 2026 06:39:01 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://bbs.cqsztech.com/static/image/common/logo_88_31.gif</url>
      <title>重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛</title>
      <link>http://bbs.cqsztech.com/</link>
    </image>
    <item>
      <title>系统登录用户“##MS_PolicyEventProcessingLogin##”被删除后，系统报错及处理</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33464</link>
      <description><![CDATA[由于某种原因，把系统登录用户“##MS_PolicyEventProcessingLogin##”删除后，在系统日志中发现大量如下提示，每5秒报一次错误。
The activated proc ‘[dbo].[sp_syspolicy_events_reader]’ running on queue ‘msdb.dbo.syspolicy_event_queue’ output the followi ...]]></description>
      <category>sqlserver</category>
      <author>刘泽宇</author>
      <pubDate>Sat, 23 May 2026 04:37:57 +0000</pubDate>
    </item>
    <item>
      <title>Could not find stored procedure \'sp_dboption\' (找不到存储过程sp_dboption)</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33463</link>
      <description><![CDATA[数据库版本：SQL SERVER 2012

现象：Could not find stored procedure \'sp_dboption\' (找不到存储过程sp_dboption)

解决方法：sql server 2012不存在sp_dboption存储过程，用alter database替换掉了。

注：sql server 2008及以下版本是包含此SP的。

eg：
 ...]]></description>
      <category>sqlserver</category>
      <author>刘泽宇</author>
      <pubDate>Sat, 23 May 2026 03:58:56 +0000</pubDate>
    </item>
    <item>
      <title>sqlserver 存储过程的优缺点</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33348</link>
      <description><![CDATA[存储过程的优点
存储过程加快系统运行速度，存储过程只在创建时编译，以后每次执行时不需要重新编译。
存储过程可以封装复杂的数据库操作，简化操作流程，例如对多个表的更新，删除等。
可实现模块化的程序设计，存储过程可以多次调用，提供统一的数据库访问接口，改 ...]]></description>
      <category>sqlserver</category>
      <author>jiawang</author>
      <pubDate>Sun, 10 May 2026 08:24:08 +0000</pubDate>
    </item>
    <item>
      <title>SQL Server 关闭错误日志</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33432</link>
      <description><![CDATA[在 SQL Server 中，错误日志是一个非常重要的工具，它帮助我们记录数据库操作中的错误、警告和信息。然而，在某些情况下，又可能希望关闭或禁用特定的错误日志记录功能。

通过SSMS连接实例成功后，通过 T-SQL 命令来关闭错误日志。

1.EXEC sp_configure \'show adv ...]]></description>
      <category>sqlserver</category>
      <author>刘泽宇</author>
      <pubDate>Sun, 10 May 2026 03:01:33 +0000</pubDate>
    </item>
    <item>
      <title>sqlserver结尾日志备份</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33431</link>
      <description><![CDATA[“结尾日志备份”捕获尚未备份的任何日志记录（日志尾部），以防工作丢失并确保日志链完好无损。 
在将 SQL Server 数据库恢复到其最近一个时间点之前，必须先备份数据库的事务日志。 结尾日志备份是数据库恢复计划中相关的最后一个备份。

并非所有还原方案都要求执 ...]]></description>
      <category>sqlserver</category>
      <author>刘泽宇</author>
      <pubDate>Sun, 10 May 2026 02:57:02 +0000</pubDate>
    </item>
    <item>
      <title>如何删除日志传送</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33430</link>
      <description><![CDATA[1.使用 SQL Server Management Studio
]]></description>
      <category>sqlserver</category>
      <author>刘泽宇</author>
<enclosure url="/forum/2.展开数据库，右键单击日志传送主数据库，然后选择属性。

" length="3.在 “选择页面”下，选择 “事务日志传送”。

" type="image/jpeg" />      <pubDate>Sun, 10 May 2026 02:50:55 +0000</pubDate>
    </item>
    <item>
      <title>Sql server怎么查看Sql的执行时间</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33350</link>
      <description><![CDATA[在Sql Server中，我们可以使用不同的方法来查看SQL的执行时间。本文将介绍几种常用的方法，并提供相应的代码示例。


方法一：SET STATISTICS TIME ON
在Sql Server中，我们可以使用SET STATISTICS TIME ON语句来启用查询的统计信息，其中包括查询的执行时间。执行 ...]]></description>
      <category>sqlserver</category>
      <author>jiawang</author>
      <pubDate>Fri, 08 May 2026 10:07:30 +0000</pubDate>
    </item>
    <item>
      <title>SQLSERVER 中 AdventureWorksLT 数据库是干什么的</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33349</link>
      <description><![CDATA[用过ORACLE的都知道，安装ORACLE时，我们可以安装演示数据，HR，自动带了 EMPLOYEES,DEPARTMENTS,JOBS等一堆HR演示表，那么SQLSERVER呢，也有类似的演示表，那就是 AdventureWorksLT 库。
下面我们让豆包老兄帮我们来解读一下 AdventureWorksLT ：

AdventureWorksLT ...]]></description>
      <category>sqlserver</category>
      <author>郑全</author>
      <pubDate>Tue, 21 Apr 2026 05:26:20 +0000</pubDate>
    </item>
    <item>
      <title>sql server下的存储过程类型</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33347</link>
      <description><![CDATA[User-defined
用户定义的过程可在用户定义的数据库中创建，或者在除了 Resource 数据库之外的所有系统数据库中创建。 
该过程可以在 Transact-SQL 中开发，也可以作为对 .NET Framework 公共运行时语言 （CLR） 方法的引用进行开发。

Temporary
临时过程是用户定 ...]]></description>
      <category>sqlserver</category>
      <author>jiawang</author>
      <pubDate>Mon, 20 Apr 2026 11:39:30 +0000</pubDate>
    </item>
    <item>
      <title>SQL Server集群类型介绍</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33346</link>
      <description><![CDATA[SQL Server集群类型
故障转移集群实例（Failover Cluster Instance, FCI）


依赖于Windows Server 故障转移群集（WSFC）来管理故障转移
提供整个SQLServer实例级别的高可用，不仅仅是单个数据库
备用节点在切换前不可读写
故障转移依赖共享存储
Always On 可用 ...]]></description>
      <category>sqlserver</category>
      <author>jiawang</author>
      <pubDate>Sun, 19 Apr 2026 13:01:24 +0000</pubDate>
    </item>
    <item>
      <title>数据库镜像操作模式</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33310</link>
      <description><![CDATA[数据库镜像会话以同步操作或异步操作运行。 在异步操作下，事务不需要等待镜像服务器将日志写入磁盘便可提交，这样可最大程度地提高性能。 在同步操作下，事务将在伙伴双方处提交，但会延长事务滞后时间。


有两种镜像运行模式。 一种是高安全性模式，它支持同步操 ...]]></description>
      <category>sqlserver</category>
      <author>jiawang</author>
      <pubDate>Sun, 19 Apr 2026 12:13:57 +0000</pubDate>
    </item>
    <item>
      <title>什么是SQL SERVER FCI</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33344</link>
      <description><![CDATA[SQL Server FCI（Failover Cluster Instances，故障转移群集实例） 是 SQL Server 提供的一种实例级别的高可用性（HA）解决方案。它构建在底层操作系统的 Windows Server 故障转移群集（WSFC）之上，旨在保护整个 SQL Server 实例免受服务器硬件故障、操作系统崩溃或局 ...]]></description>
      <category>sqlserver</category>
      <author>mahan</author>
      <pubDate>Sun, 19 Apr 2026 11:44:36 +0000</pubDate>
    </item>
    <item>
      <title>SQL Server高可用之Always On故障转移群集实例 (FCI) 配置</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33330</link>
      <description><![CDATA[SQL Server 的 Always On 实际上是一个品牌家族，它主要包含两种完全不同的高可用性技术：Always On 可用性组 (Availability Groups, AG) 和 Always On 故障转移群集实例 (Failover Cluster Instances, FCI)。

虽然它们都依赖 Windows 故障转移群集 (WSFC) 服务，但 ...]]></description>
      <category>sqlserver</category>
      <author>ZhangQi</author>
      <pubDate>Thu, 16 Apr 2026 10:06:03 +0000</pubDate>
    </item>
    <item>
      <title>SQL Server高可用之Always On可用性组 (Availability Groups, AG) 配置</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33325</link>
      <description><![CDATA[简介：Always On 可用性组 是 SQL Server 提供的一种高可用性和灾难恢复解决方案，它比传统的日志传送、数据库镜像等功能更强大、更灵活。

（一）核心概念
- 可用性组 (Availability Group, AG)：将一组用户数据库（称为“可用性数据库”）作为一个整体进行故障转移 ...]]></description>
      <category>sqlserver</category>
      <author>ZhangQi</author>
      <pubDate>Mon, 13 Apr 2026 10:15:02 +0000</pubDate>
    </item>
    <item>
      <title>sql server下使用发布订阅实现读写分离</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33308</link>
      <description><![CDATA[实验服务器配置：
服务器1：
虚拟机名称：Windows Server 2019_1
计算机名：WIN-3QK23I0H13Q
ip：192.168.110.139
操作系统：window server 2019 datacenter
数据库：sqlsever2019 x64
数据库sa密码：Sztech12345


服务器2：
虚拟机名称：Windows Server 20 ...]]></description>
      <category>sqlserver</category>
      <author>jiawang</author>
      <pubDate>Mon, 13 Apr 2026 09:57:52 +0000</pubDate>
    </item>
    <item>
      <title>发布 \'xx\' 的并发快照不可用，因为该快照尚未完全生成，或者日志读取器代理未运行...</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33316</link>
      <description><![CDATA[因快照生成中断导致的并发快照不可用的问题，通过清除与特定发布相关的订阅和快照信息，从多个表中删除相关记录，重建分发。

这些步骤是在分发服务器上执行：

1. 删除相关的发布订阅

2.执行下列查询,如果还是存在\'xx\'相关的行

select * from msdb..MSdistpu ...]]></description>
      <category>sqlserver</category>
      <author>刘泽宇</author>
      <pubDate>Sun, 12 Apr 2026 03:29:33 +0000</pubDate>
    </item>
    <item>
      <title>SQL Server高可用之镜像配置（使用见证服务器）</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33314</link>
      <description><![CDATA[（一）概念

数据库镜像是 SQL Server 中的一种高可用性和灾难恢复解决方案，它维护一个数据库的两个副本：



一共有两种模式：
]]></description>
      <category>sqlserver</category>
      <author>ZhangQi</author>
<enclosure url="/forum/- 高性能模式：异步提交，镜像库有 ..." length="" type="image/jpeg" />      <pubDate>Sat, 11 Apr 2026 06:36:35 +0000</pubDate>
    </item>
    <item>
      <title>SQL Server高可用之发布与订阅配置</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33313</link>
      <description><![CDATA[本次介绍如何使用SQL Server Management Studio (SSMS) 设置发布与订阅

发布和订阅属于sqlserver的复制技术，引用官网的解释：复制是一组技术，它将数据和数据库对象从一个数据库复制和分发到另一个数据库，然后在数据库之间进行同步以保持一致性。

https://docs. ...]]></description>
      <category>sqlserver</category>
      <author>ZhangQi</author>
      <pubDate>Sat, 11 Apr 2026 06:29:34 +0000</pubDate>
    </item>
    <item>
      <title>发布订阅同步状态异常：发布 \'xx\' 的并发快照不可用，因为该快照尚未完全生成，或...</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33312</link>
      <description><![CDATA[当前环境：sqlserver always on存在一主一从此时主库配置发布，另一sqlserver配置订阅
发布订阅配置均正常，结果配置完成后查看同步状态，显示：
发布 \'xx\' 的并发快照不可用，因为该快照尚未完全生成，或者日志读取器代理未运行，无法激活它。如果并发快照的生成过程 ...]]></description>
      <category>sqlserver</category>
      <author>刘泽宇</author>
      <pubDate>Thu, 09 Apr 2026 10:25:35 +0000</pubDate>
    </item>
    <item>
      <title>SQL Server镜像状态说明</title>
      <link>http://bbs.cqsztech.com/forum.php?mod=viewthread&amp;tid=33306</link>
      <description><![CDATA[SQL Server镜像状态可能包含下面几种：
[*]SYNCHRONIZING：正在同步，通常在第一次启用数据库镜像时出现，表示镜像服务器正在追上主体服务器的进度。
[*]SYNCHRONIZED：已经同步完毕，大部分时间都是这种状态，一旦有爆发性的事务传输到镜像数据库，状态会从SYNCHRONI ...]]></description>
      <category>sqlserver</category>
      <author>jiawang</author>
      <pubDate>Wed, 08 Apr 2026 10:40:40 +0000</pubDate>
    </item>
  </channel>
</rss>