Home > Backend Development > PHP Tutorial > php 连接sqlserver 时 镜像的有关问题

php 连接sqlserver 时 镜像的有关问题

WBOY
Release: 2016-06-13 13:29:16
Original
778 people have browsed it

php 连接sqlserver 时 镜像的问题
看网上连数据库教材说 

"Server=Partner_A; Failover_Partner=Partner_B; Database=AdventureWorks2008R2; Network=dbmssocn"


方式来连接 Partner_A 不通时候 连接Partner_B




我没有镜像环境, 用两个相同的数据库试了试 192.168.1.10 192.168.1.11
"Server=192.168.1.10; Failover_Partner=192.168.1.11; Database=AdventureWorks2008R2; Network=dbmssocn"

10通的时候可以连接到10 , 10关闭了的话 不会连到11, 就和没有数据库一样

镜像的东西应该怎么用?PHP还需要做什么别的处理么?

------解决方案--------------------
镜像是啥?

用pdo操作sqlserver比较不错
------解决方案--------------------
这里有很多可学习的东西嘛

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template