Solusi Pertama,
insert into t1
select id,isnull(name,'Peter') from t2
Solusi kedua
ALTER TABLE T1 ALTER COLUMN name varchar(255) NULL
insert into t1
select id,name from t2
ALTER TABLE T1 ALTER COLUMN name varchar(255) NOT NULL
Solusi Pertama,
insert into t1
select id,isnull(name,'Peter') from t2
Solusi kedua
ALTER TABLE T1 ALTER COLUMN name varchar(255) NULL
insert into t1
select id,name from t2
ALTER TABLE T1 ALTER COLUMN name varchar(255) NOT NULL