James Snell
0
Q:

sql server alter column

ALTER TABLE Customers
ADD Email varchar(255);
25
ALTER TABLE table_name 
ALTER COLUMN column_name new_data_type(size);
7
ALTER TABLE table_name
ALTER COLUMN column_name datatype;
7
ALTER TABLE table_name
ALTER COLUMN column_name datatype;

-- Example
ALTER TABLE product
ALTER COLUMN description VARCHAR(250);
3
ALTER TABLE dbo.doc_exa 
ADD column_b VARCHAR(20) NULL, 
	column_c INT NULL ;
12
ALTER TABLE `Table Name` MODIFY COLUMN `Column Name` Datatype(Size);
1

ALTER TABLE table_name

ADD column_name datatype; 
1
EXEC sp_RENAME 'table_name.oldColumn_name' , 'newColumn_name', 'COLUMN'
0

ALTER TABLE table_name

ALTER COLUMN column_name datatype; 
3

New to Communities?

Join the community