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
  #21  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM






Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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
  #22  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM






Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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
  #23  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM



Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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
  #24  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM



Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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
  #25  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM



Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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
  #26  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM



Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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
  #27  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM



Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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
  #28  
Old   
ken
 
Posts: n/a

Default Re: mirroring database user account problem - 09-02-2008 , 09:15 PM



Thank all you guy, i can use the sp_help_revlogin to create user in
mirroring database can successful connect and retieve data
"Tibor Karaszi" <tibor_please.no.email_karaszi (AT) hotmail (DOT) nomail.com> wrote in
message news:etohh5RDJHA.4704 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
Quote:
... and also make sure that the SID number for the login you create is the
same between the instances. One option is to use sp_help_revlogin
(Google).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Ekrem Önsoy" <ekrem (AT) compecta (DOT) com> wrote in message
news:397F6677-E0BD-4CEE-AB28-D4846A1F221F (AT) microsoft (DOT) com...
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 in message
news:evFylMRDJHA.4824 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
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.