Technology Microsoft Software & solutions

How to Change a Column Name in MSSQL

    • 1). Open the SQL Server Enterprise Manager utility. Click the Windows "Start" button and select "Programs > Microsoft SQL Server > SQL Server Enterprise Manager."

    • 2). Open the SQL Query Analyzer. Click "Tools" in the menu at the top of the Enterprise Manager screen, and then select "SQL Query Analyzer."

    • 3). Change your column name. Use the command provided below as a model for changing the column name in an SQL Server database:

      USE DatabaseName
      GO
      sp_RENAME 'TableName.[CurrentColumnName]' , '[NewColumnName]', 'COLUMN'
      GO

      Substitute your database name on line 1. Provide the name of the table containing the column you want to change on line 3, along with the current name of that column within the brackets that immediately follow it. Supply the new column name within the next set of brackets. Run the query to finalize the column name change.

SHARE
RELATED POSTS on "Technology"
How to Stop Windows Genuine Notification Wizard
How to Stop Windows Genuine Notification Wizard
How to Use Windows XP Professional to Upgrade to Windows MCE 2005
How to Use Windows XP Professional to Upgrade to Windows MCE 2005
How do I Launch a Keyboard Macro?
How do I Launch a Keyboard Macro?
How to Tell If Windows Need Replacing
How to Tell If Windows Need Replacing
How to Uninstall a Malware Protector
How to Uninstall a Malware Protector
How to Get Rid of Newlines
How to Get Rid of Newlines
PC Diagnostic Help
PC Diagnostic Help
How to Disable Remote Devices in Group Policy
How to Disable Remote Devices in Group Policy
I Can't Use the Volume Buttons on My Headphones on My XP PC
I Can't Use the Volume Buttons on My Headphones on My XP PC
How to Restore Your PC to One Month Ago in Vista
How to Restore Your PC to One Month Ago in Vista
How to Unlock Volume Icons in the Notification Area of Windows Vista
How to Unlock Volume Icons in the Notification Area of Windows Vista
How to Fix Run Dll Errors
How to Fix Run Dll Errors
How To Run In Safe Mode In Windows Vista
How To Run In Safe Mode In Windows Vista
Microsoft Windows 2000 Registry Repair
Microsoft Windows 2000 Registry Repair
How to Unzip Files in Windows Vista Home Basic
How to Unzip Files in Windows Vista Home Basic
How to Enter Safe Mode on an Asus Eee PC
How to Enter Safe Mode on an Asus Eee PC
How to Open an HP Computer
How to Open an HP Computer
How to Identify What Network Adapters Are Installed on Windows Vista With No Manufacturer Listed
How to Identify What Network Adapters Are Installed on Windows Vista With No Manufacturer Listed
How to Fix Virtual Memory That Is Running Low
How to Fix Virtual Memory That Is Running Low
The Windows Update Won't Work After Installing XP SP3
The Windows Update Won't Work After Installing XP SP3
How to Access the BIOS Menu
How to Access the BIOS Menu
List of Computer Database Registry Programs
List of Computer Database Registry Programs
How to Boot a Computer to VMware
How to Boot a Computer to VMware
How to Raise Data Recovery for XFS
How to Raise Data Recovery for XFS
How to Clear the Windows ARP Cache
How to Clear the Windows ARP Cache

Leave Your Reply

*