Solved

Creating A View Is Denied

Posted on 2006-07-18
1
825 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

919 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

17 Experts available now in Live!

Get 1:1 Help Now