Use the schema view by clicking View β Database Schema Schema
Expand tables and columns.
Right click on the column and click Refactor -> Rename ...
Change the name in the New Name box with the View Changes check box.
Note that this changes not only the column name, but also stored procedures that can reference this column.
Inside the database project, a refactorlog file is created that shows the name change.
When a new schema is deployed against an existing database, it looks like DataDude is looking for the refactorlog file and the dbo._Refactorlog table to determine which refactors should be processed in the database.
Here is the code generated by this procedure, change the column name that was also specified in the stored procedure:
EXECUTE sp_rename @objname = N'[dbo].[Users].[TestF]', @newname = N'TestG', @objtype = N'COLUMN'; GO PRINT N'Altering [dbo].[ListUsers]...'; GO ALTER PROCEDURE [dbo].[ListUsers] AS SELECT [ID], [FirstName], [LastName], [TestG] FROM Users RETURN 0 GO
Whale
source share