IF Not (EXISTS(SELECT * FROM sysobjects WHERE name='TaminActiveDrug'))
Begin
CREATE TABLE [dbo].[TaminActiveDrug](
	[Id] [UNIQUEIDENTIFIER] NOT NULL,
	[GenericCode] [VARCHAR](5) NULL,
	[Name] [NVARCHAR](MAX) NULL,
	[Form] [NVARCHAR](MAX) NULL,
	[MaxDrugPrice] [MONEY] NULL,
	[InsuranceStatus] [BIT] NULL,
	[RequiresBarcodeInquiry] [BIT] NULL,
	[NeededToHaveFile] [BIT] NULL,
	[IsHospitalDrug] [BIT] NULL,
	[CreatedOn] [DATETIME] NULL,
 CONSTRAINT [PK_TAMIN_ActiveDrug] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)
) ON [PRIMARY] 
ALTER TABLE [dbo].[TaminActiveDrug] ADD  CONSTRAINT [DF_TAMIN_ActiveDrug_Id]  DEFAULT (NEWID()) FOR [Id]
ALTER TABLE [dbo].[TaminActiveDrug] ADD  CONSTRAINT [DF_TAMINActiveDrug_CreatedOn]  DEFAULT (GETDATE()) FOR [CreatedOn]
End