![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 78
天地英豪
这个作者很懒,什么都没留下…
展开
-
SQl Server 中的循环
SQl Server 中的循环,关于循环总结一下。从何说起呢,就从跨数据库开始吧。在Transact-SQL帮助中并没有找到for循环,估计是没有吧。无妨,while循环就够了。示例: Declare @BillID int --单据ID Set @BillID=1 While @BillID Begin Print @BillID Set @BillID=@BillID+1 End问题描述:从数据库db1中导入1到4号之间的单据。单据主表Main: ID int identity permary原创 2010-07-23 21:31:00 · 555 阅读 · 0 评论 -
SQL Server 2016 AlwaysOn搭建
AlwaysOn可用性组信息 示意图如下,可用性组FrontDBServer由三个节点组成d c ,A06为主副本,A08和SQLC01为从副本,A08为同步提交数据,自动故障转移,可供查询,SQLC01为异步提交数据,手工强制故障转移,只有只读直连时可供查询;[ 客户端通过公共网络进行访问,节点之间通过私有网络进行通信。 角色 节点 节点类型 同步方式 支持故障转移类型 Availability Group Primay Replica SQLC01原创 2017-07-29 13:31:51 · 2438 阅读 · 0 评论