arrow_backwardBack to SQL Server code examples

SQL Server Rename Column Example

How to rename a table column in SQL Server
EXEC sp_rename '[dbo].[users].[last_name]',
'family_name',
'COLUMN'

Using Beekeeper Studio?

Beekeeper Studio is a free and open source database manager for Windows, Mac, and Linux.

This feature is baked right in, so there's no need to manually type SQL every time. Access column renaming by right-clicking on a table in the sidebar and clicking 'View Structure'.

Download Beekeeper Studio