up vote 1 down vote favorite
share [g+] share [fb]

Often in my c# code, I can change the name of a variable, and all references to it will change as well.

Is there a similar feature that allows me to do this with objects in SQL servers? Some of my tables, columns, and stored procedures are in need of renaming, but of course I want to keep it all functioning.

link|improve this question

25% accept rate
feedback

2 Answers

If you are talking about Linq to SQL and changing the LINQ object definitions in visual studio, then the typical way to update these is to delete and re-add them in the designer then find their references and update them to the new names. If you use DI and something like the repository pattern, this is pretty easy as the references are all in one area and not spread out all over your code.

link|improve this answer
feedback

If you want to buy something, looks like Red Gate has something right up your alley.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.