| Author |
Message |
ffoulks
Joined: 02 Jul 2009 Posts: 1 Location: Indiana University School of Medicine
|
Posted: Thu Jul 02, 2009 3:14 pm Post subject: When renaming a table, dependent objects are not renamed |
|
|
When I use Smart Rename to rename a table, neither the foreign keys nor the defaults are renamed. Suppose I have two tables, Table1 and Table2, and that Table1 has a relation that refers to Table2. SQL Server names this relation:
FK_Table1_Table2
Then I change the name of Table1 to Table1Rev with Smart Rename. The name of the foreign key should now be
FK_Table1Rev_Table2.
However, the change script generated by Smart Rename does not change the name of the foreign key. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Thu Jul 02, 2009 3:55 pm Post subject: |
|
|
Hello,
I'm sorry to say that SQL Refactor is not designed to automatically rename constraints when the table name changes. We can consider this as a feature request for a future version if there is sufficient demand.
Thanks! _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group