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 is sleeping status in sql server?
How to write an inner join with the where clause in ms sql server?
What is an execution plan? How would you view the execution plan?
you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration
Explain sql delete command?
How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?
What are the differences between triggers and stored procedures?
How many types of local tables are there in sql server?
What is cte (common table expression)?
What command is used to create a database in the sql server and how?
What is function of CUBE ?
What is report server project?
What is index in an assignment?
How is foreign key related to primary key?
What is the chart in report?