I want to increase the data type of varchar(100) to varchar(200)?without any loss of data in the existing table?HOW

Use ALTER TABLE statement.

do you want to do that in sql or asp.net?

I want to increase the data type of varchar(100) to varchar(200)?without any loss of data in the existing table?HOW

ALTER TABLE table_name
MODIFY COLUMN col_name varchar(200)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.