IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'Testingdb')
	DROP DATABASE [Testingdb]
GO

CREATE DATABASE [Testingdb]  ON (NAME = N'Testingdb_Data', FILENAME = N'C:\Program Files\Microsoft SQL Server2000\MSSQL\data\Testingdb_Data.MDF' , SIZE = 1, FILEGROWTH = 10%) LOG ON (NAME = N'Testingdb_Log', FILENAME = N'C:\Program Files\Microsoft SQL Server2000\MSSQL\data\Testingdb_Log.LDF' , SIZE = 1, FILEGROWTH = 10%)
 COLLATE Latin1_General_CI_AS
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[BALES]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[BALES]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[BALES2]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[BALES2]
GO

CREATE TABLE [dbo].[BALES] (
	[BALID] [numeric](19, 0) IDENTITY (1, 1) NOT NULL ,
	[COLOUR] [varchar] (20) COLLATE Latin1_General_CI_AS NULL ,
	[PRICE] [float] NULL ,
	[DESCRIPTION] [varchar] (200) COLLATE Latin1_General_CI_AS NULL ,
	[BALSIZE] [varchar] (50) COLLATE Latin1_General_CI_AS NULL ,
	[NAME] [varchar] (40) COLLATE Latin1_General_CI_AS NULL ,
	[BALEPIC] [varchar] (200) COLLATE Latin1_General_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[BALES2] (
	[BALID] [numeric](19, 0) IDENTITY (1, 1) NOT NULL ,
	[COLOUR] [varchar] (20) COLLATE Latin1_General_CI_AS NULL ,
	[PRICE] [float] NULL ,
	[DESCRIPTION] [varchar] (200) COLLATE Latin1_General_CI_AS NULL ,
	[BALSIZE] [varchar] (50) COLLATE Latin1_General_CI_AS NULL ,
	[NAME] [varchar] (40) COLLATE Latin1_General_CI_AS NULL ,
	[BALEPIC] [varchar] (200) COLLATE Latin1_General_CI_AS NULL 
) ON [PRIMARY]
GO
