Eerste oplossing,
insert into t1
select id,isnull(name,'Peter') from t2
Tweede oplossing
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
Eerste oplossing,
insert into t1
select id,isnull(name,'Peter') from t2
Tweede oplossing
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