|
|
|
Удалить/переименовать таблицу
|
|||
|---|---|---|---|
|
#18+
Интересует такой вопрос: как мне удалить/переименовать таблицу так, что бы все триггеры, процедуры и прочие штуковины, связанные с этой табличкой, не изменялись. Интересует 9 версия. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.07.2006, 12:12 |
|
||
|
Удалить/переименовать таблицу
|
|||
|---|---|---|---|
|
#18+
sysmasterИнтересует такой вопрос: как мне удалить/переименовать таблицу так, что бы все триггеры, процедуры и прочие штуковины, связанные с этой табличкой, не изменялись. Интересует 9 версия.Так не бывает - триггера благополучно удаляться вместе с табличкой при её удалении. Процедуры все благополучно станут инвалидными при удалении либо при переименовании таблицы. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.07.2006, 12:21 |
|
||
|
Удалить/переименовать таблицу
|
|||
|---|---|---|---|
|
#18+
IDS 9.30 =========== If you rename a table that has a trigger, the database server takes the following actions: - Replaces the name of the table in the trigger definition but does not replace the table name where it appears inside any triggered actions - Returns an error if the new table name is the same as a correlation name in the REFERENCING clause of the trigger definition When the trigger executes, the database server returns an error if it encounters a table name for which no table exists. =========== If a view references the table that was renamed, and the view resides in the same database as the table, the database server updates the text of the view in the sysviews system catalog table to reflect the new table name. =========== утилита dbschema позволит сохранить информацию о таблице и сопутствующих объектах. Можно посмотреть еще похожую тему о вьюшках http://www.sql.ru/forum/actualthread.aspx?tid=154905&hl=view ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.07.2006, 15:31 |
|
||
|
|

start [/forum/topic.php?fid=44&fpage=49&tid=1608629]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
44ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 206ms |
| total: | 320ms |

| 0 / 0 |
