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 truncate options available in sql server? : sql server database administration
How to add a new column to an existing table with "alter table ... Add" in ms sql server?
How to rebuild the master database?
write sql program to get the detail of student in a class?
How to list all login names on the ms sql server?
select name of emplyoee whose total salary is 130 from following table. id name salary 1 a 100 2 b 20 3 c 50 1 a 30 2 b 70 Post the resulantant Query?
you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration
What is nonclustered index with included columns ?
Explain DBCC?
Explain the storage models of OLAP?
Which autogrowth database setting is good?
What is ssl in sql server?
Oracle (3259)
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)