Create Customer GP SQL



/****** Object:  Table [dbo].[Customer]    Script Date: 07/14/2014 07:13:56 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Customer](
	[BatchNumber] [varchar](50) NOT NULL,
	[BatchType] [varchar](10) NOT NULL,
	[CustomerNumber] [varchar](50) NOT NULL,
	[CustomerName] [varchar](100) NULL,
	[ContactName] [varchar](70) NULL,
	[CustomerAddress1] [varchar](100) NULL,
	[CustomerAddress2] [varchar](100) NULL,
	[CustomerAddress3] [varchar](100) NULL,
	[City] [varchar](50) NULL,
	[State] [varchar](50) NULL,
	[Zip] [varchar](50) NULL,
 CONSTRAINT [PK_Customer] PRIMARY KEY CLUSTERED 
(
	[BatchNumber] ASC,
	[CustomerNumber] 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

SET ANSI_PADDING OFF
GO


Leave a Reply