SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 cluster failover
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vuacorona
Starting Member

8 Posts

Posted - 03/09/2007 :  14:22:50  Show Profile  Visit vuacorona's Homepage  Send vuacorona a Yahoo! Message  Reply with Quote
Hi all:

I was wondering what will happend to the transaction when the cluster failover from one node to another?

In my case the database is in node-001 and I need to restart the server on node-001. So I need to have the database failover to node-002, so I can work on node-001. During this process, will it effect to end-user?

Thanks
vua


tkizer
Almighty SQL Goddess

USA
37460 Posts

Posted - 03/09/2007 :  14:26:20  Show Profile  Visit tkizer's Homepage  Reply with Quote
Yes it will affect the user. The SQL Server instance will be shutdown, then started. So the databases will be unavailable until the failover is complete. This means that any transactions that haven't been committed will be rolled back at startup.

Tara Kizer

Edited by - tkizer on 03/09/2007 14:27:22
Go to Top of Page

pareshmotiwala
Constraint Violating Yak Guru

USA
323 Posts

Posted - 03/09/2007 :  15:01:43  Show Profile  Visit pareshmotiwala's Homepage  Click to see pareshmotiwala's MSN Messenger address  Send pareshmotiwala a Yahoo! Message  Reply with Quote
usually in your cluster administrator, there is a provision to change the time for failover. the default if I remember correctly is 180 Seconds. You can play with it to reduce it. but as Tara suggested, your queries WILL FAIL.
Go to Top of Page

vuacorona
Starting Member

8 Posts

Posted - 03/09/2007 :  15:21:03  Show Profile  Visit vuacorona's Homepage  Send vuacorona a Yahoo! Message  Reply with Quote
Thank you for all of your quick replies.

One more question.

This concept will apply to failback as well right? So if I want to have to node failback to original node, all the transactions will rollback ?

Thanks
vua

Go to Top of Page

tkizer
Almighty SQL Goddess

USA
37460 Posts

Posted - 03/09/2007 :  15:26:28  Show Profile  Visit tkizer's Homepage  Reply with Quote
Only those transactions that have not been committed will rollback.

Each time a failover occurs, SQL Server services are shutdown, cluster group dependencies are moved over, then the SQL Server services are started up.

Anytime you start the SQL Server service, regardless if it's on a cluster or a standalone server, all not completed transactions are rolled back.

Tara Kizer
Go to Top of Page

vuacorona
Starting Member

8 Posts

Posted - 03/09/2007 :  15:43:32  Show Profile  Visit vuacorona's Homepage  Send vuacorona a Yahoo! Message  Reply with Quote
Thank you very much Tara, and thank you all.

Have a wondefull weekend.

vua
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000