要先删除依赖关系(外键):
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[DF__F_T1__d1__49C3F6B7]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
  ALTER TABLE T1 DROP CONSTRAINT DF__F_T1__d1__49C3F6B7
GO
Alter table T1 Drop Column d1
GO