Solved

Creating A View Is Denied

Posted on 2006-07-18
1
827 Views
Last Modified: 2008-03-03
Hello, Can someone help me understand how to resolve the below error message that I got while trying to Creating A View?  

Server: Msg 262, Level 14, State 1, Procedure vw_AllActiveStaff, Line 8
CREATE VIEW permission denied, database 'PROD', owner 'dbo'.

Thanks.
Mahonek
0
Comment
Question by:Mahonek
1 Comment
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 75 total points
ID: 17136639
From books online:



CREATE VIEW permission defaults to the members of the db_owner and db_ddladmin fixed database roles


If you aren't in one of those roles:

To create a view, the user must have CREATE VIEW permission along with SELECT permission on the tables, views, and table-valued functions being referenced in the view......


So whatever user you are logging in is no a member of db_owner or db_ddladmin, and does not have CREATE VIEW permission.

So go into Enterprise Manager and check your users role membership and rights.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CDC and AOG on MS SQL 2012 13 23
MS SQL Server select from Sub Table 14 23
Isolation level setting TSQL View 10 24
install report service in sccm2012 3 18
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

840 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