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
21 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 3

Accepted Solution

by:
Daniel Jones earned 500 total points
Comment Utility
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
Comment Utility
Thank you very much!!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

10 Experts available now in Live!

Get 1:1 Help Now