Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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