IF NOT EXISTS (SELECT * FROM SYSOBJECTS WHERE SYSOBJECTS.name = 'HYGUVENLIDOGUMSURECI')
CREATE TABLE [dbo].[HYGUVENLIDOGUMSURECI](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TARIH] [datetime] NULL,
	[HYATISID] [int] NULL,
	[BS1] [int] NULL,
	[BS2] [int] NULL,
	[BS3] [int] NULL,
	[BS4] [int] NULL,
	[BS5] [int] NULL,
	[BS6] [int] NULL,
	[BS7] [int] NULL,
	[BS8] [int] NULL,
	[BS9] [int] NULL,
	[BS10] [bit] NULL,
	[BSSPID] [int] NULL,
	[DO1] [int] NULL,
	[DO2] [int] NULL,
	[DO3] [int] NULL,
	[DO4] [int] NULL,
	[DO5] [int] NULL,
	[DO6] [int] NULL,
	[DO7] [int] NULL,
	[DOB1] [bit] NULL,
	[DOB2] [bit] NULL,
	[DOB3] [bit] NULL,
	[DOB4] [bit] NULL,
	[DOB5] [bit] NULL,
	[DOB6] [bit] NULL,
	[DOB7] [bit] NULL,
	[DOSPID] [int] NULL,
	[DHS1] [int] NULL,
	[DHS2] [int] NULL,
	[DHS3] [int] NULL,
	[DHS4] [int] NULL,
	[DHS5] [int] NULL,
	[DHS6] [int] NULL,
	[DHS7] [int] NULL,
	[DHS8] [int] NULL,
	[DHS9] [int] NULL,
	[DHS10] [int] NULL,
	[DHS11] [int] NULL,
	[DHSSPID] [int] NULL,
	[TO1] [int] NULL,
	[TO2] [int] NULL,
	[TO3] [int] NULL,
	[TO4] [int] NULL,
	[TO5] [int] NULL,
	[TO6] [int] NULL,
	[TO7] [int] NULL,
	[TO8] [int] NULL,
	[TO9] [int] NULL,
	[TOSPID] [int] NULL,
	[KYUSER] [nvarchar](25) NULL,
	[KYTTARIHI] [datetime] NULL,
 CONSTRAINT [PK_HYGUVENLIDOGUMSURECI] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO


