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
How to enter comments in transact-sql statements?
How to create an index on an existing table in ms sql server?
What is temporary table in sql server? Why we use temp table?
How can change procedure in sql server?
How can windows applications connect to sql servers via odbc?
Explain the concept of recursive stored procedure.
How is a full-text index updated?
What is wrong with sql server client libarary dll, ntwdblib.dll?
What is the difference between composite index and covering index?
How to modify existing triggers using "alter trigger"?
Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
What is the distinction amongst delete and truncate?
Do you know what is similarity and difference between truncate and delete in sql?
What are logical/boolean operations in ms sql server?
How to execute a stored procedure in ms sql server?