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
John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?
How to reaname table name without using sp_Rename in sql server..?
Explain insert into select statement?
Can a database be shrunk with users active?
What stored procedure would you use to view lock information?
What is deploy, process and build? : sql server analysis services, ssas
Which tcp/ip port does sql server run on? How can it be changed?
What are sql azure firewall rules?
Can a table have 2 primary keys?
What is database replication?
How to defragment indexes with alter index ... Reorganize?
What are the different normalization forms?
Can group functions be mixed with non-group selection fields in ms sql server?
Where are full-text indexes stored?
How to see existing views in ms sql server?