Red Gate forums :: View topic - When renaming a table, dependent objects are not renamed
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Refactor 1
SQL Refactor 1 forum

When renaming a table, dependent objects are not renamed

Search in SQL Refactor 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ffoulks



Joined: 02 Jul 2009
Posts: 1
Location: Indiana University School of Medicine

PostPosted: Thu Jul 02, 2009 3:14 pm    Post subject: When renaming a table, dependent objects are not renamed Reply with quote

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
View user's profile Send private message Send e-mail
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Thu Jul 02, 2009 3:55 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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