if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_药品库存_药品资料]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[药品库存] DROP CONSTRAINT FK_药品库存_药品资料
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_门诊划价明细_门诊划价]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[门诊划价明细] DROP CONSTRAINT FK_门诊划价明细_门诊划价
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_门诊挂号_门诊挂号类型]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)
ALTER TABLE [dbo].[门诊挂号] DROP CONSTRAINT FK_门诊挂号_门诊挂号类型
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[产地]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[产地]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[医生资料]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[医生资料]