How can i change the column name.
Answer Posted / harsh v m
Sonia, clear your doubt here.
AS keyword is used for aliasing some existing column name
for our convenience.But the column name doesn't change @
database.
But incase of renaming a column the change is reflected @
database n it's usually done if we wish changing property
of a particular column.
sp_rename 'tablename.oldcolumnname','newcolumnname'->This
actually works out for Sql 2000.ALTER TABLE key doesn't
help.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What according to you is the difference between mysql and sql server performance?
What is set nocount on and what is set nocount off?
What are the types of user defined functions in sql server?
How to execute stored procedure and set temp table in sql server?
Can we write ddl in trigger?
How to assign new column names in a view?
What is a join in sql? What are the types of joins?
What is a select query statement in ms sql server?
When columns are added to existing tables, what do they initially contain?
What are different types of raid configurations? : SQL Server Architecture
Can you explain various data region available in ssrs with their use?
Explain primary key in sql server?
What is postgresql server?
What are dml (data manipulation language) statements in ms sql server?
What are the 7 disadvantages to a manual system?