CREATE TABLE [dbo].[AlternateBillTo]
(
[ABTPriKey] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CustomerAddressCode] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AlternateBillTo] ADD CONSTRAINT [PK_AlternateBillTo] PRIMARY KEY CLUSTERED ([ABTPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AlternateBillTo] ADD CONSTRAINT [IX_AlternateBillTo_CustomerNumber_CustomerAddressCode] UNIQUE NONCLUSTERED ([CustomerNumber], [CustomerAddressCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[AlternateBillTo] TO [MssExec]
GRANT INSERT ON [dbo].[AlternateBillTo] TO [MssExec]
GRANT DELETE ON [dbo].[AlternateBillTo] TO [MssExec]
GRANT UPDATE ON [dbo].[AlternateBillTo] TO [MssExec]
GO