dbTalk Databases Forums  

Added users to a logged shipped database

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Added users to a logged shipped database in the comp.databases.ms-sqlserver forum.



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

Default Added users to a logged shipped database - 12-19-2007 , 08:41 PM






I have 2 sql server 2000 database that participate in log shipping.
Server A is the source database, which log ships to a database on
Server B. The database on Server B is in a warm stand by/read only
mode. Is there a way that I can add users to the database on Server
B, without having to add the users to the database in server A? I am
trying to use the database on Server B as a reporting only database
and add more users to have permissions to run reports.

Please let me know if anyone has any suggestions. Thank you.

Reply With Quote
  #2  
Old   
Greg D. Moore \(Strider\)
 
Posts: n/a

Default Re: Added users to a logged shipped database - 12-19-2007 , 09:47 PM






"Justin" <justinmiyashiro (AT) hotmail (DOT) com> wrote

Quote:
I have 2 sql server 2000 database that participate in log shipping.
Server A is the source database, which log ships to a database on
Server B. The database on Server B is in a warm stand by/read only
mode. Is there a way that I can add users to the database on Server
B, without having to add the users to the database in server A? I am
trying to use the database on Server B as a reporting only database
and add more users to have permissions to run reports.

Please let me know if anyone has any suggestions. Thank you.
Add the users on Server A.






--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html




Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Added users to a logged shipped database - 12-20-2007 , 04:29 PM



Justin (justinmiyashiro (AT) hotmail (DOT) com) writes:
Quote:
I have 2 sql server 2000 database that participate in log shipping.
Server A is the source database, which log ships to a database on
Server B. The database on Server B is in a warm stand by/read only
mode. Is there a way that I can add users to the database on Server
B, without having to add the users to the database in server A? I am
trying to use the database on Server B as a reporting only database
and add more users to have permissions to run reports.
No, that is not possible. If you were to make modifications to the
database on server B, then it would not be possible to apply the logs from
server A. What it the changes in the log are not consistent with the
changes you made on server B.

I can think of two options to achieve what you are looking for:

1) Create the logins on both servers, and create the database users on
server A. Then drop the logins on server A to leave the database users
orphaned on server A, but functional on server B. This works best
with Windows logins. And it presumes that the users in question does
not need access to other databases on server A.

2) Create a second database on ServerB with views on all tables in
serverA. Make sure that the second database has the same owner as
the log-ship database. Enable cross-database ownership chaining on
server B, or at least for the two databases. Add the users to
this second database, and grant them SELECT permissions on the views.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


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.