Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Mirrors Expand / Collapse
Author
Message
Posted Monday, December 10, 2012 10:25 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, July 1, 2014 6:20 AM
Points: 1,339, Visits: 1,312
Comments posted to this topic are about the item Mirrors



See, understand, learn, try, use efficient
© Dr.Plch
Post #1394884
Posted Tuesday, December 11, 2012 1:35 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 12:38 PM
Points: 3,864, Visits: 5,012
Had to dust off the cobwebs on this one
Thanks for this, always good to refresh the grey matter...


____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1394931
Posted Tuesday, December 11, 2012 1:53 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 3:02 PM
Points: 13,334, Visits: 10,201
I got it right, but only because I thought you had to link the mirror to the principal first, and then the principal to the mirror (which starts the mirroring session).

Establish a Database Mirroring Session Using Windows Authentication (Transact-SQL)

(points 4 and 5)

Are you sure a log backup is needed? Quoting from BOL:

Typically, you need to take at least one log backup on the principal database. However, a log backup might be unnecessary, if the database has just been created and no log backup has been taken yet, or if the recovery model has just been changed from SIMPLE to FULL.


Prepare a Mirror Database for Mirroring




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1394939
Posted Tuesday, December 11, 2012 2:12 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, July 1, 2014 6:20 AM
Points: 1,339, Visits: 1,312
Koen Verbeeck (12/11/2012)

Are you sure a log backup is needed? Quoting from BOL:

Typically, you need to take at least one log backup on the principal database. However, a log backup might be unnecessary, if the database has just been created and no log backup has been taken yet, or if the recovery model has just been changed from SIMPLE to FULL.


Prepare a Mirror Database for Mirroring

I'm quite sure. The procedure in the question is the same I used to establish the mirror, I tried both wizard and T-SQL. The database was just changed from simple to full recovery model.
I repeated the test when writing the QotD, with the same result. There was only one difference: First time the error message was completely confusing, but this was not reproduced.




See, understand, learn, try, use efficient
© Dr.Plch
Post #1394949
Posted Tuesday, December 11, 2012 4:47 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, August 27, 2013 4:28 AM
Points: 1,248, Visits: 779
Koen Verbeeck (12/11/2012)
I got it right, but only because I thought you had to link the mirror to the principal first, and then the principal to the mirror (which starts the mirroring session).

Establish a Database Mirroring Session Using Windows Authentication (Transact-SQL)

(points 4 and 5)

Prepare a Mirror Database for Mirroring


Likewise, however I got this wrong, because rather than thinking it would error, I thought it would succeed but not start the mirroring... learned some useful stuff though, so all good.

Thanks for the question.


_____________________________________________________________________
"The difficult tasks we do immediately, the impossible takes a little longer"
Post #1395045
Posted Tuesday, December 11, 2012 6:02 AM


SSCrazy Eights

SSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy EightsSSCrazy Eights

Group: General Forum Members
Last Login: Today @ 1:33 PM
Points: 8,571, Visits: 9,076
Interesting question.

I picked the same wrong answer (set up but not started) as 45% of those who answered before me, so I've learnt something.


Tom
Post #1395075
Posted Tuesday, December 11, 2012 6:54 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Friday, July 25, 2014 5:26 AM
Points: 614, Visits: 480
I got it right but, apparently, for the wrong reason. I looked at ALTER Db SET PARTNER = .... and thought that was illegal syntax.
If it isn't, what is it actually doing, please?
Post #1395099
Posted Tuesday, December 11, 2012 6:54 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:55 PM
Points: 1,830, Visits: 1,366
Great question. I picked wrong like a few before me (Set up but not started), so thank you for teaching me something today.



Everything is awesome!
Post #1395100
Posted Tuesday, December 11, 2012 7:19 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Monday, July 7, 2014 9:38 AM
Points: 1,780, Visits: 582
Great QoTD...
got it wrong, but your explanation was nice..
learned something...
thanks...
Post #1395113
Posted Tuesday, December 11, 2012 9:49 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 24, 2014 6:38 PM
Points: 1,371, Visits: 1,560
Same here...also got the question wrong. Thought it would set-up but not start.
Always good to learn something new


~ Lokesh Vij

Guidelines for quicker answers on T-SQL question
Guidelines for answers on Performance questions

Link to my Blog Post --> www.SQLPathy.com

Follow me @Twitter

Post #1395210
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse