Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
Mirroring and SQL logins...
11 posts, Page 1 of 2
1
2
»»
Mirroring and SQL logins...
Rate Topic
Display Mode
Topic Options
Author
Message
rarara
rarara
Posted Tuesday, August 21, 2012 7:53 AM
SSC Rookie
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:47 AM
Points: 27,
Visits: 304
Hi, If I run "select * from sys.sql_logins" on my principal and mirrored servers it gives me the exact same results in terms of names, SID, created dates etc. The only discrepancies are with these:
Default database
- on the principal it has the user database as the default for the logins, but on the mirrored server the logins list master as default. presumably that is because the mirrored version has a 'Restoring...' status. If there was a failover, would the default database change to be the user DB automatically?
Principal ID
- these numbers are slighty out of sync between both servers. Can that be ignored?
I want to know that if mirrored failover occurs, will all SQL logins be fully functioning??
Post #1347801
Lynn Pettis
Lynn Pettis
Posted Tuesday, August 21, 2012 8:02 AM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 9:24 AM
Points: 21,631,
Visits: 27,488
The key for the SQL Logins is the SID, and since they are the same, there should be no problems. As far as the default database changing on a failover, I'm not sure. The best way to find out is test it a test environment and see what happens.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1347805
opc.three
opc.three
Posted Thursday, August 30, 2012 11:25 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 8:26 AM
Points: 6,737,
Visits: 11,791
rarara (8/21/2012)
Default database
- on the principal it has the user database as the default for the logins, but on the mirrored server the logins list master as default. presumably that is because the mirrored version has a 'Restoring...' status. If there was a failover, would the default database change to be the user DB automatically?
Mirroring is at the database level, so no. You'll need to add this to your DR plan. Next time consider creating a shell database, associate each Login with the default database they have on the primary and then initialize your mirroring sessions. That said, it's still a good idea to script things like this out periodically for use after a failover. Just in case anyone has changed their default database on the primary to another mirrored database.
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1352388
durai nagarajan
durai nagarajan
Posted Friday, August 31, 2012 4:38 AM
SSC Eights!
Group: General Forum Members
Last Login: 2 days ago @ 2:05 AM
Points: 856,
Visits: 2,115
opc.three ,
hope login created dates are matched because of master DB sync?
Regards
Durai Nagarajan
Post #1352688
opc.three
opc.three
Posted Friday, August 31, 2012 6:00 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 8:26 AM
Points: 6,737,
Visits: 11,791
durai nagarajan (8/31/2012)
opc.three ,
hope login created dates are matched because of master DB sync?
Sorry, I do not get your comment. Please clarify.
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1352738
durai nagarajan
durai nagarajan
Posted Friday, August 31, 2012 6:45 AM
SSC Eights!
Group: General Forum Members
Last Login: 2 days ago @ 2:05 AM
Points: 856,
Visits: 2,115
as the user specified select * from sys.sql_logins datas are matching on both the servers.
is it matching due to master DB mirroring?
Regards
Durai Nagarajan
Post #1352765
opc.three
opc.three
Posted Friday, August 31, 2012 8:22 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 8:26 AM
Points: 6,737,
Visits: 11,791
durai nagarajan (8/31/2012)
as the user specified select * from sys.sql_logins datas are matching on both the servers.
is it matching due to master DB mirroring?
The same except for the two columns mentioned.
No, master cannot be mirrored.
@rarara, are your two instances running under the same domain account?
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1352845
durai nagarajan
durai nagarajan
Posted Friday, August 31, 2012 9:05 AM
SSC Eights!
Group: General Forum Members
Last Login: 2 days ago @ 2:05 AM
Points: 856,
Visits: 2,115
[b]opc.three (8/31/2012No, master cannot be mirrored.
Thanks, i have read it somewhere , but how did the other details gone to the secondary server?
Regards
Durai Nagarajan
Post #1352884
opc.three
opc.three
Posted Friday, August 31, 2012 9:11 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 8:26 AM
Points: 6,737,
Visits: 11,791
That's why I asked about the account the partners are running under. In some configs logins go over automatically, in others they do not.
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1352894
durai nagarajan
durai nagarajan
Posted Friday, August 31, 2012 9:30 AM
SSC Eights!
Group: General Forum Members
Last Login: 2 days ago @ 2:05 AM
Points: 856,
Visits: 2,115
opc you mis-understood this is not @rarara.
i asked my doubt related to that.
Regards
Durai Nagarajan
Post #1352913
« Prev Topic
|
Next Topic »
11 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.