Add new columns to existing table. Using by Alter Table.

·

·

Add  new columns to existing table

ALTER TABLE [YOURDATABASENAME].[dbo].[YOURTABLE] ADD NEWCol1 NVARCHAR(20);

ALTER TABLE [YOURDATABASENAME].[dbo].[YOURTABLE] ADD NEWCol2 DATETIME;

ALTER TABLE [YOURDATABASENAME].[dbo].[YOURTABLE] ADD NEWCol3 NVARCHAR(20);

ALTER TABLE [YOURDATABASENAME].[dbo].[YOURTABLE] ADD NEWCol4 DATETIME;



Leave a Reply

Your email address will not be published. Required fields are marked *