PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > Added users to a logged shipped database
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Added users to a logged shipped database

Réponse
 
LinkBack Outils de la discussion
Vieux 20/12/2007, 02h41   #1
Justin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.
  Réponse avec citation
Vieux 20/12/2007, 03h47   #2
Greg D. Moore \(Strider\)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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


  Réponse avec citation
Vieux 20/12/2007, 22h29   #3
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h29.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16034 seconds with 11 queries