How can i change the column name.

Answer Posted / kinthada cnu

hi all

sp_rename 'tablename.oldcolumnname','newcolumnname','column'

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of columns types constraints in the sql server?

529


How do we synchronize On-Premise SQL server with SQL Azure?

100


1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?

1542


Explain primary key in sql server?

571


How is SQL Azure different than SQL server?

93






What is a View ? Can we insert, Update and delete a view?

631


Explain about system database?

580


Is it possible for a stored procedure to call itself or recursive stored procedure?

512


List out some of the requirements to set up a sql server failover cluster?

547


Using the customer, and order table in northwind database, please write a query to produce xml?

657


what are constraints? : Sql server database administration

528


What are the advantages of partitioning?

646


What is an expression in ms sql server?

573


When should you use an instead of trigger?

556


Can you pass expressions to stored procedure parameters?

509