IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BC_BOLET_IMAG]'))

begin

CREATE TABLE [dbo].[BC_BOLET_IMAG](
	[codigo] [int] NOT NULL,
	[imagem] [image] NOT NULL,
	[nome_arquivo] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_BC_BOLET_IMAG] PRIMARY KEY CLUSTERED 
(
	[codigo] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

end;
