USE 目标数据库[TargetDatabase]
GO
ALTER TABLE [dbo].[TargetTable] DROP CONSTRAINT [TargetDefaultConstraint]
go
alter table [dbo].[TargetTable] add CONSTRAINT [TargetDefaultConstraint] default(defaultvalue) for DefaultField
go
GO
ALTER TABLE [dbo].[TargetTable] DROP CONSTRAINT [TargetDefaultConstraint]
go
alter table [dbo].[TargetTable] add CONSTRAINT [TargetDefaultConstraint] default(defaultvalue) for DefaultField
go