Unix Technical Forum

Added users to a logged shipped database

This is a discussion on Added users to a logged shipped database within the SQL Server forums, part of the Microsoft SQL Server category; --> I have 2 sql server 2000 database that participate in log shipping. Server A is the source database, which ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 03:46 PM
Justin
 
Posts: n/a
Default Added users to a logged shipped database

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:46 PM
Greg D. Moore \(Strider\)
 
Posts: n/a
Default Re: Added users to a logged shipped database

"Justin" <justinmiyashiro@hotmail.com> wrote in message
news:b55a5933-55ee-401f-b78f-bb703953a3f9@i29g2000prf.googlegroups.com...
>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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 03:46 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Added users to a logged shipped database

Justin (justinmiyashiro@hotmail.com) writes:
> 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@sommarskog.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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com