dbTalk Databases Forums  

mirroring database user account problem

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss mirroring database user account problem in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ken
 
Posts: n/a

Default mirroring database user account problem - 09-02-2008 , 10:46 AM






I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #2  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM






Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #3  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #4  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #5  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #6  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #7  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #8  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #9  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
  #10  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 11:55 AM



Well, the story was told a little bit confusing...

However, let me tell you that in Database Mirroring, the mirroring process
is performed only at the database level. Principle replicates the
transactions to the Mirror. You should create the Logins at the Principle
and Mirror yourself manually. Database Mirroring would not create the server
level objects (like Logins). So, you better have the same Logins at the
Principle and Mirror SQL Server instances. So that your connections will not
fail when a failover happens and your ex-mirror takes the responsibility of
Principle role.

--
Ekrem Önsoy



"ken" <kenken2 (AT) yahoo (DOT) com.hk> wrote

Quote:
I setup a mirroring database, have principal (host A), mirroring (host B),
withness (host C)

i create a user account and login account "usera" can login can retieve
data
in principal server (host A)

when occur failover to host B, host B become principal, but i can connect
host B using "usera", i saw host B have a user account "usera" in host B,
but haven't the login account, then i create login account "usera",
but the "usera" login account only can login only, can't access database,
anyone can help,

Many many thanks.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.