Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Hello,

I am trying to formulate a script to change some permissions on SYSUSERPERM.

I login as DBA, and run the following command:

update SYSUSERPERM set dbaauth = 'T' where user_id = 104

I receive a 'Permission denied: you do not have permission to update SYSUSERPERM.

However, if I perform the privilege change directly through the Sybase frontend, the system allows me(dba) to perform the change.

Any ideas?

asked 16 Aug '11, 14:15

smripley's gravatar image

smripley
1111
accept rate: 0%

edited 16 Aug '11, 15:57

Justin%20Willey's gravatar image

Justin Willey
7.6k137179249


You can't change or insert values into system tables directly - you have to use the appropriate DDL command instead. When you use Sybase Central to make the change, you aren't editing the data directly, Sybase Central is executing the command for you.

You will need the GRANT statement:

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.sqlanywhere.11.0.1/sqlanywhere_en11/help_top_index.htm

permanent link

answered 16 Aug '11, 15:51

Justin%20Willey's gravatar image

Justin Willey
7.6k137179249
accept rate: 20%

edited 16 Aug '11, 15:51

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×32
×10
×5

question asked: 16 Aug '11, 14:15

question was seen: 3,145 times

last updated: 16 Aug '11, 15:57