Tables [dbo].[InvoiceMessages]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_InvoiceMessages: InvoiceMessagesIDInvoiceMessagesIDint4
No
1 - 1
Foreign Keys FK_InvoiceMessages_Branch: [dbo].[Branch].BranchFIDIndexes IX_InvoiceMessages_BranchFID: BranchFIDBranchFIDint4
No
Header1varchar(256)256
Yes
Message1varchar(2048)2048
Yes
Header2varchar(256)256
Yes
Message2varchar(2048)2048
Yes
Header3varchar(256)256
Yes
Message3varchar(2048)2048
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_InvoiceMessages: InvoiceMessagesIDPK_InvoiceMessagesInvoiceMessagesID
Yes
80
IX_InvoiceMessages_BranchFIDBranchFID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_InvoiceMessages_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InvoiceMessages]
(
[InvoiceMessagesID] [int] NOT NULL IDENTITY(1, 1),
[BranchFID] [int] NOT NULL,
[Header1] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Message1] [varchar] (2048) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Header2] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Message2] [varchar] (2048) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Header3] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Message3] [varchar] (2048) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceMessages] ADD CONSTRAINT [PK_InvoiceMessages] PRIMARY KEY NONCLUSTERED  ([InvoiceMessagesID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceMessages] ADD CONSTRAINT [IX_InvoiceMessages_BranchFID] UNIQUE NONCLUSTERED  ([BranchFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceMessages] ADD CONSTRAINT [FK_InvoiceMessages_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[InvoiceMessages] TO [MssExec]
GRANT INSERT ON  [dbo].[InvoiceMessages] TO [MssExec]
GRANT DELETE ON  [dbo].[InvoiceMessages] TO [MssExec]
GRANT UPDATE ON  [dbo].[InvoiceMessages] TO [MssExec]
GO
Uses