Re: Application Role & 2nd Database

From: Jeff Price (price.9_at_osu.edu)
Date: 02/11/04


Date: Wed, 11 Feb 2004 16:00:27 -0500

Thanks, I can run it fine now from Query Analyzer, but not my app... more
work to do there.

I had to set the DB owners as the same account and a few other tasks. The
following MSDN article helped:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/instsql/in_runsetup_1cj5.asp

"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message
news:ecqxs2D8DHA.2056@TK2MSFTNGP10.phx.gbl...
> Creating referencing views will work fine. If you don't want to grant
> permissions on the underlying tables to guest or public, you can use an
> unbroken cross-database ownership chain so that the app role needs only
> permissions on views in the application role database.
>
> To maintain an unbroken chain, the owners of the objects involved need to
> map to the same login. If your objects are owned by 'dbo', this
> necessitates that the owners of both databases be the same. Also, the
> cross-database chaining option (introduced in SQL 2000 SP3) needs to be
> enabled for those databases.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Jeff Price" <price.9@osu.edu> wrote in message
> news:Ohj0lGD8DHA.360@TK2MSFTNGP12.phx.gbl...
> > I'm trying to use application roles for the 1st time and have a problem.
> > Most of the select statements I use reference tables in a separate
> database.
> > After reading the BOL I find that this only works through the GUEST
> account.
> > Drat!
> >
> > Any suggestions to fix this? I'm considering setting up views in the
> local
> > DB, but this will involve changing the code and creating the views and I
> > still don't know if it will work.
> > --
> > Jeffrey R. Price
> > Database Manager
> > Computing & Communication Services
> > Max M. Fisher College of Business
> > The Ohio State University
> > 320F Mason Hall
> > 250 W. Woodruff Avenue
> > Columbus, OH 43210-1309
> >
> >
>
>



Relevant Pages

  • Re: Portable Database Choice
    ... I searched this group quite a bit looking for database alternatives and did find the options below from this search. ... I'm posting this in the hope it can be of use to other developers in a position similar to mine where I needed a low cost alternative to Pocket Access. ... One app requires synchronization between desktop and mobile device, the other requires a push of data from the desktop to mobile. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Portable Database Choice
    ... > database alternatives and did find the options below from this search. ... One app requires ... > push of data from the desktop to mobile. ... > Both of these apps used Pocket Access on the device with Peter Foot's ...
    (microsoft.public.dotnet.framework.compactframework)
  • Portable Database Choice
    ... database alternatives and did find the options below from this search. ... of data from the desktop to mobile. ... The read-only app requires speedy lookup of data in a flat table ... Both of these apps used Pocket Access on the device with Peter Foot's ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Sqlserverce class not working when VB.Net application is running from network drive
    ... one app attempts to connect to a sdf file on a network share, ... possible that the database is already in use when you attempt to ...
    (microsoft.public.sqlserver.ce)
  • Re: Number of users
    ... having multiple instances of the same database open. ... "Gina Whipp" wrote: ... developing with the usage of multiple instances of the ... Restricting the user the one instance of the app makes it expotentionally ...
    (microsoft.public.access.modulesdaovba)