if Not  exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[History_TmpDrugH]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
Begin
CREATE TABLE [dbo].[History_TmpDrugH](
	[Id_Havaleh] [bigint] IDENTITY(1,1) Primary Key NOT NULL,
	[Kind_Flag] [char](1) NOT NULL,
	[kind_Save] [char](1) NULL,
	[Nu_Forosh] [varchar](8) NULL,
	[Nu_Bargasht_Forosh] [varchar](8) NULL,
	[Note_Code] [varchar](20) NULL,
	[Dumy_Code] [varchar](12) NULL,
	[Grade_Code] [varchar](3) NULL,
	[Nezam_No] [nvarchar](10) NULL,
	[Trans_Name] [nvarchar](35) NULL,
	[Resive_Name] [nvarchar](35) NULL,
	[Sazman_Code] [varchar](3) NULL,
	[Computer_Code] [smallint] NULL,
	[NumberQueue] [smallint] NULL,
	[User_id] [smallint] NULL,
	[Tarikh] [smalldatetime] NOT NULL,
	[Tarikh_Etebar] [smalldatetime] NULL,
	[Tarikh_Noskheh] [smalldatetime] NULL,
	[Tarikh_Paziresh] [smalldatetime] NULL,
	[CallUser] [smallint] NULL,
	[CallTarikh] [smalldatetime] NULL
) ON [PRIMARY]


ALTER TABLE [dbo].[History_TmpDrugH] ADD  CONSTRAINT [DF_Tbl_HistoryTmpDrugH_CallTarikh]  DEFAULT (getdate()) FOR [CallTarikh]
End