How to rename a column in SQL Server

To rename a database table column use this code:

USE Database_name;
GO
sp_rename 'Table_name.[Old_Column_Name]', '[New_Column_Name]', 'COLUMN';


GO

If the post helped you, please share it:
Pin It

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">