Quantcast
Channel: Windows Server
Viewing all articles
Browse latest Browse all 26364

SQL2012 high saftey with automatic failover- problems

$
0
0

Here is my problem.

Needed info:

Server 1: SQL Principal Instance

Server 2: SQL Mirror Instance

Server 3: SQL Witness

Connection Method: Windows 2012 IIS 8.5 with PHP (SQLSRV_Connect)

$server=Server1

$connection=array("failover_partner" = server2, "database" = mydb, "UID" = my id, "PWD" = mypw);

SQLSRV_Connect ($server, $connection)

They are configured and setup to support High Saftey with automatic

failover. I can sucesfullyfail over from within the mgmt stuido and

the php webpage/code will still make a connection. During my fail over

testing i wanted to see how the failover would work if Server1

(principal) went down hard...so i shut it down. Looking within the mgmt

studio i can verify that the mirror is now configured as the principal

and the failover worked as inteded(YAY!).

The problem:

When i use the phpwebpage/code, i get general "can not...


Viewing all articles
Browse latest Browse all 26364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>