How to swap the data of two columns in a table. both the
columns containing varchar values.

Answer Posted / amit kumar

select Col1,col2 into newtable

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you start single user mode in clustered installations?

605


What is the maximum size of a row in sql server?

626


How do I create a trace in sql server?

604


How to write a query with a full outer join in ms sql server?

642


What is the difference between stored procedure and functions?

680






What is user-defined scalar function?

635


What are the database objects? : SQL Server Architecture

624


Explain about sql server login?

690


What do you understand by mirroring and mention the advantages of the mirroring?

675


What is NOT NULL Constraint in sql server 2012?

672


Explain raiserror in sql server?

660


How to how to convert numeric expression data types using the convert() function??

627


Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

2120


What is the filtered index?

676


What are security principals used in sql server 2005?

576