December 11, 2012 at 1:35 am
This was removed by the editor as SPAM
December 11, 2012 at 1:53 am
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
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
December 11, 2012 at 2:12 am
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.
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.
December 11, 2012 at 4:47 am
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)
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.
_____________________________________________________________________
[font="Comic Sans MS"]"The difficult tasks we do immediately, the impossible takes a little longer"[/font]
December 11, 2012 at 6:02 am
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
December 11, 2012 at 6:54 am
Great question. I picked wrong like a few before me (Set up but not started), so thank you for teaching me something today.
December 11, 2012 at 6:54 am
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?
December 11, 2012 at 7:19 am
Great QoTD...
got it wrong, but your explanation was nice..
learned something...
thanks...
December 11, 2012 at 9:49 am
Same here...also got the question wrong. Thought it would set-up but not start.
Always good to learn something new 🙂
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
December 11, 2012 at 2:26 pm
Thanks for the question.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
December 12, 2012 at 4:26 am
Good question. Too hard for me.
December 12, 2012 at 10:03 pm
🙂 Is not getting right answer and lot of work data layer site so can give me suggestion??
July 18, 2013 at 2:03 am
Why error? what is wrong? Everything seems correct except the mirroring will not start because you miss the transaction log backup restored on the srv2.
Igor Micev,My blog: www.igormicev.com
Viewing 14 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic. Login to reply