on 2010 May 19 10:58 AM
I'm frequently using proxy tables for existing remote tables/views. The CREATE EXISTING TABLE syntax is very convenient for that, particularly as I don't have to specify column names and types then.
However, when the remote table/view is altered lateron (say, to add a column), this change is not applied to the proxy table. Furthermore, it seems to be forbidden to use ALTER TABLE on a proxy table to add new columns "manually". As a consequence, one has to drop and recreate the proxy table (and re-assign the according permissions).
Therefore, it would by handy if there was as statement like
ALTER EXISTING TABLE MyTable
working similar to the ALTER VIEW RECOMPILE statement, i.e. it should regenerate the column definitions (and automatically drop/recreate indexes) based on the remote table.
Just to complete: The answer from Karim Khamis [Sybase] in the product futures NG:
Good suggestion Volker. We will consider it for a future release.
Karim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, it's been a very old request, and just today I ran over it again...
ALTER TABLE would be handy for proxy tables particulary when privileges have to be rebuilt after the workaround via DROP TABLE/CREATE TABLE.
Yes, I'm still waiting for the future 😉
I have subscribed to this thread. Let's meet in eleven years again to check the status.
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.