Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 High Availability (2005)
 Single name space

Author  Topic 

daunce
Starting Member

11 Posts

Posted - 2008-08-28 : 19:00:16
Hi all.

Is there a way for a web application to call the DB with one host name, and still use that name for when the DB fails over to the mirror?

Or does failing over connections to the DB have to be done in the client application?

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-28 : 22:25:03
Yes. You can do that if you use the SQL native client with synchronous database mirroring and a witness.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

daunce
Starting Member

11 Posts

Posted - 2008-08-29 : 14:31:13
Thanks Tara.

i've just been looking but unable to find any definitive answer, does php's mssql_connect() function support client redirect?

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-29 : 14:34:17
No.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-08-29 : 14:39:00
Not sure about PHP connection:

But look at this good article:
http://www.microsoft.com/technet/prodtechnol/sql/bestpractice/implappfailover.mspx
Go to Top of Page

daunce
Starting Member

11 Posts

Posted - 2008-08-29 : 15:21:31
wow, you guys just moinitor these forums all the time.. ;-)

i found this:
http://msdn.microsoft.com/en-us/library/cc296161(SQL.90).aspx

it says the Microsoft sql driver (released last month) for php supports Failover_Partner option.

Thanks for your helpful information. Much appreciated.
Go to Top of Page
   

- Advertisement -