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 meant by Active-Passive and Active-Active clustering setup?
How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?
Which Model uses the SET concept
Where can you add custom error messages to sql server?
Explain features and concepts of analysis services?
How to convert binary strings into integers in ms sql server?
Determine when to use stored procedure to complete sql server tasks?
What is the difference between a check constraint and a rule?
How many types of functions are there in sql server?
How to set database to be single_user in ms sql server?
What is attribute hierarchy? : sql server analysis services, ssas
What is TDS(Tabular Data Stream) Gateway?
How you would rewrite the sql query to return the customerid sorted numerically?
What are drilldown reports?
Does a server store data?