HOW TO RENAME A COLUMN NAME
Answers were Sorted based on User's Feedback
Answer / ravikv
SP_Rename 'dbo.table_name.column_name','new column_name'.
| Is This Answer Correct ? | 27 Yes | 4 No |
Answer / ram&saran
SP_RENAME '<table_name>.<old_column_name>','<new_column_name>'
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / praveen kumar.dandu
suppose we had a table name emp and columns ename and sal.
<sql>alter table emp rename column sal to salary;
it wll rename the column sal to salary
| Is This Answer Correct ? | 5 Yes | 12 No |
What are the different index configurations a table can have?
Explain the phases a transaction has to undergo?
What about UPDATESTATISTICS ?
What is a field in a table?
You are doing log shipping due to some reasons it is failing. How you will proceed from there
create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration
how can you check the level of fragmentation on a table? : Sql server administration
Which are the olap features?
Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?
how to delete duplicate rows in sql server2005
7 Answers Cisco, CTS, HCL, IBM,
How to populate a table in sql server?
What is the difference between a Application Server and a Database
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)