Re: permissions by view accross databases

From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 09/30/03


Date: Mon, 29 Sep 2003 20:39:36 -0500


The tables and views must have the same owner in order for the ownership
chain to be unbroken. For dbo-owned objects, this requires that the
databases be owned by the same login so you may need to execute
sp_changedbowner so that the dbo users map to the same login. If you
are running SQL 2000 SP3, you'll also need to enable cross-database
chaining.

See Cross DB Ownership Chaining in the SQL Server 2000 SP3 Books Online
<adminsql.chm::/ad_config_8d7m.htm> for more information.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
-----------------------
SQL FAQ links (courtesy  Neil Pike):
http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
http://www.sqlserverfaq.com
http://www.mssqlserver.com/faq
-----------------------
"Daryl" <daryl.myers@vistashare.com> wrote in message
news:068a01c386a7$aacf5240$a101280a@phx.gbl...
> I am creating views in a 2nd database in order to give
> read only access to certain users.  These views reference
> tables in the 1st database.  When I give the user access
> to the views in the 2nd database it is not enough.  I
> also have to give the user access to the tables in the
> 1st database.  This defeats my purpose of restricting the
> user to access to that data only through the view.  Is
> there a way around this?


Relevant Pages

  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: Word 2003/Access2000/SQLSVR
    ... SQL server being where the data is held and this is accessed through a MS ... entire database and that may be say a record for Berkshire. ... "Peter Jamieson" wrote: ... replaced with the first record on the table in use. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... For that it is much harder to handle the incremental identifier, ... database but although they have the data, they are not connected at the same ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... SQL Server Management Studio is nowhere to be found on my ...
    (microsoft.public.dotnet.framework.adonet)