Tables [dbo].[FactoringBranch]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created9:09:21 AM Friday, November 8, 2024
Last Modified9:09:31 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_FactoringBranch: FactoringBranchIDFactoringBranchIDint4
No
1 - 1
Foreign Keys FK_FactoringBranch_BranchFID: [dbo].[Branch].BranchFIDIndexes IX_FactoringBranch_BranchFID: BranchFIDBranchFIDint4
No
ClientCodevarchar(8)8
No
ClientTradeStylevarchar(2)2
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_FactoringBranch: FactoringBranchIDPK_FactoringBranchFactoringBranchID
Yes
IX_FactoringBranch_BranchFIDBranchFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_FactoringBranch_BranchFIDBranchFID->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[FactoringBranch]
(
[FactoringBranchID] [int] NOT NULL IDENTITY(1, 1),
[BranchFID] [int] NOT NULL,
[ClientCode] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ClientTradeStyle] [varchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringBranch] ADD CONSTRAINT [PK_FactoringBranch] PRIMARY KEY NONCLUSTERED  ([FactoringBranchID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringBranch] ADD CONSTRAINT [IX_FactoringBranch_BranchFID] UNIQUE NONCLUSTERED  ([BranchFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringBranch] ADD CONSTRAINT [FK_FactoringBranch_BranchFID] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[FactoringBranch] TO [MssExec]
GRANT INSERT ON  [dbo].[FactoringBranch] TO [MssExec]
GRANT DELETE ON  [dbo].[FactoringBranch] TO [MssExec]
GRANT UPDATE ON  [dbo].[FactoringBranch] TO [MssExec]
GO
Uses