Go Premium for a chance to win a PS4. Enter to Win

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
?
39 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
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Loops Section Overview

885 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