sql schema issue

Posted on 2012-09-11
Last Modified: 2012-09-12
 i try to create a view  in schema, the view will have some masking to block some information on a table

CREATE VIEW myschma.vw_address AS
      SELECT ***, *** FROM dbo.address


i got an error when i sign in as tempUser and run the vw_address.

The SELECT permission was denied on the object 'address', database 'dbname', schema 'dbo'.

i don't want tempUser has select on dbo.address. only the view with masking.
if i put the view in dbo without schema, it will work, but i want this view in schema, any idea, thank you so much.
Question by:tristonyip
    1 Comment
    LVL 23

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
    In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now