Tables [dbo].[CustomerStatementRunBranches]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1048
Created10:12:49 PM Thursday, December 28, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_CustomerStatementRunBranches: CustomerStatementRunBranchesIDCustomerStatementRunBranchesIDint4
No
1 - 1
Cluster Key IX_CustomerStatementRunBranches_BranchID: CustomerStatementRunFID\BranchIDForeign Keys FK_CustomerStatementRunBranches_CustomerStatementRun: [dbo].[CustomerStatementRun].CustomerStatementRunFIDCustomerStatementRunFIDint4
No
Cluster Key IX_CustomerStatementRunBranches_BranchID: CustomerStatementRunFID\BranchIDBranchIDvarchar(5)5
No
BranchNamevarchar(30)30
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_CustomerStatementRunBranches: CustomerStatementRunBranchesIDPK_CustomerStatementRunBranchesCustomerStatementRunBranchesID
Yes
80
Cluster Key IX_CustomerStatementRunBranches_BranchID: CustomerStatementRunFID\BranchIDIX_CustomerStatementRunBranches_BranchIDCustomerStatementRunFID, BranchID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_CustomerStatementRunBranches_CustomerStatementRunCustomerStatementRunFID->[dbo].[CustomerStatementRun].[CustomerStatementRunID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CustomerStatementRunBranches]
(
[CustomerStatementRunBranchesID] [int] NOT NULL IDENTITY(1, 1),
[CustomerStatementRunFID] [int] NOT NULL,
[BranchID] [varchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BranchName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementRunBranches] ADD CONSTRAINT [PK_CustomerStatementRunBranches] PRIMARY KEY NONCLUSTERED  ([CustomerStatementRunBranchesID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementRunBranches] ADD CONSTRAINT [IX_CustomerStatementRunBranches_BranchID] UNIQUE CLUSTERED  ([CustomerStatementRunFID], [BranchID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerStatementRunBranches] ADD CONSTRAINT [FK_CustomerStatementRunBranches_CustomerStatementRun] FOREIGN KEY ([CustomerStatementRunFID]) REFERENCES [dbo].[CustomerStatementRun] ([CustomerStatementRunID])
GO
GRANT SELECT ON  [dbo].[CustomerStatementRunBranches] TO [MssExec]
GRANT INSERT ON  [dbo].[CustomerStatementRunBranches] TO [MssExec]
GRANT DELETE ON  [dbo].[CustomerStatementRunBranches] TO [MssExec]
GRANT UPDATE ON  [dbo].[CustomerStatementRunBranches] TO [MssExec]
GO
Uses