用分区视图解决?create table [2002年数据] (编号 int,年 int check(年=2002) default 2002,数据 int,primary key(编号,年))
 
create table [2003年数据] (编号 int,年 int check(年=2003) default 2003,数据 int,primary key(编号,年))create view 所有数据 as
select * from [2002年数据] 
union all
select * from [2003年数据] 
go