Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What role or permission should a SQL user have in order to run a script that has a single UPDATE command like below?

Posted on 2016-08-26
2
Medium Priority
?
38 Views
Last Modified: 2016-08-31
Hello,

We are running SQL 2008 R2 on a Windows 2008 R2 server.

I would like to know what role or permission a user should have in order to run a script that contains a single UPDATE command like the one shown below:

UPDATE Table1
SET Column1 = ‘A’
WHERE Column2 = ‘XXXX’ AND Column1 = ‘B’

Attempting to run the query currently returns the following error:

The UPDATE  permission was denied on the object ‘Table1’, database ‘DB1’, schema ‘dbo’.

Thanks in advance,

Regards,
Real-Timer
0
Comment
Question by:realtimer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Daniel Jones earned 2000 total points
ID: 41772654
Using SQL Server Management Studio, access your SQL Server database 'databaseName', and confirm that the user you're setting on service center for the database connection actually has the SELECT, UPDATE, INSERT and DELETE privileges over that database, or just only over the 'tableTest1' object.
0
 

Author Closing Comment

by:realtimer
ID: 41778979
Thank you very much!!
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this article I will describe the Detach & Attach 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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

715 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