How to swap the data of two columns in a table. both the
columns containing varchar values.
Answer Posted / ami tkumar
Sorry for previous answer.
DECLARE @temp AS varchar(50)
UPDATE swapdata SET @temp=value2,value2=value1,value1=@temp
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
what is a sub-report?
Explain contrast amongst grouped and non-bunched records?
what stored procedure can you use to display the current processes? : Sql server administration
what is checksum in sql server.........???
Explain where clause?
What is bcp? When does it used?
How do you set a trace flag in sql server?
How to generate create table script on an existing table in ms sql server?
What is SubQuery in SQL Server 2008
What command do we use to rename a database?
What are three major types of constraints?
What is a non clustered primary key?
Explain the difference between primary keys and foreign keys?
How to defragment indexes with alter index ... Reorganize?
What are the types of database schema? : sql server analysis services, ssas