How do i enable ddl so that i can execute a ALTER table command

290 views
Skip to first unread message

theirishmole

unread,
Oct 5, 2009, 12:20:35 PM10/5/09
to intersystems.public.cache
When i try to do an ALTER TABLE command i get the following:

Error: [SQLCODE: <-300>:<DDL not allowed on this table definition>]

How do i enable ddl?

Thomas Springer

unread,
Oct 6, 2009, 7:46:35 PM10/6/09
to intersystems...@googlegroups.com

> When i try to do an ALTER TABLE command i get the following:
>
> Error: [SQLCODE: <-300>:<DDL not allowed on this table definition>]
>
> How do i enable ddl?

I guess this is a permissions problem.
Try to grant the particular user %ALTER privileges on the table. You can
do that by using the SM-Portal. See [Home] -> [Security] -> [Users]

You might want to read more about Caché Security in the documentation:
http://docs.intersystems.com/cache20091/csp/docbook/DocBook.UI.Page.cls?KEY=GCAS_sql

Hth,
Thomas

theirishmole

unread,
Oct 9, 2009, 5:25:10 AM10/9/09
to intersystems.public.cache
I solved the problem.

I had to put [ DdlAllowed ] in the class definition.
> You might want to read more about Caché Security in the documentation:http://docs.intersystems.com/cache20091/csp/docbook/DocBook.UI.Page.c...
>
> Hth,
> Thomas
Reply all
Reply to author
Forward
0 new messages