Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a table in sql. i have to change name of a field using query.
what will be query for that.
Posted

sp_rename[^]

EDIT
If you want to change the column name in result set then you may use alias like as below.
SQL
SELECT ID AS EmpID, [Name] AS EmpName FROM EMP
 
Share this answer
 
v2
 
Share this answer
 
refer this site as well

http://www.w3schools.com/sql/sql_alter.asp
 
Share this answer
 
Google [^]is your friend. The first result seems to relevent enough to me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900