Tables [dbo].[AgentConnectBranch]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:49:59 AM Thursday, December 5, 2024
Last Modified8:49:59 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_AgentConnectBranch: AgentConnectBranchIDAgentConnectBranchIDint4
No
1 - 1
Foreign Keys FK_AgentConnectBranch_AgentConnect: [dbo].[AgentConnect].AgentConnectFIDIndexes IX_AgentConnectBranch_AgentConnect_ExternalCode: AgentConnectFID\ExternalCodeAgentConnectFIDint4
No
AgentBranchIDnvarchar(10)20
No
AgentBranchNamenvarchar(64)128
No
AgentIDnvarchar(20)40
No
AgentNamenvarchar(64)128
No
PermitUploadsbit1
No
((0))
PermitDownloadsbit1
No
((0))
Indexes IX_AgentConnectBranch_AgentConnect_ExternalCode: AgentConnectFID\ExternalCodeExternalCodenvarchar(32)64
No
Inactivebit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AgentConnectBranch: AgentConnectBranchIDPK_AgentConnectBranchAgentConnectBranchID
Yes
IX_AgentConnectBranch_AgentConnect_ExternalCodeAgentConnectFID, ExternalCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AgentConnectBranch_AgentConnectAgentConnectFID->[dbo].[AgentConnect].[AgentConnectID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AgentConnectBranch]
(
[AgentConnectBranchID] [int] NOT NULL IDENTITY(1, 1),
[AgentConnectFID] [int] NOT NULL,
[AgentBranchID] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AgentBranchName] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AgentID] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AgentName] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PermitUploads] [bit] NOT NULL CONSTRAINT [DF_AgentConnectBranch_PermitUploads] DEFAULT ((0)),
[PermitDownloads] [bit] NOT NULL CONSTRAINT [DF_AgentConnectBranch_PermitDownloads] DEFAULT ((0)),
[ExternalCode] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_AgentConnectBranch_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AgentConnectBranch] ADD CONSTRAINT [PK_AgentConnectBranch] PRIMARY KEY CLUSTERED  ([AgentConnectBranchID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AgentConnectBranch] ADD CONSTRAINT [IX_AgentConnectBranch_AgentConnect_ExternalCode] UNIQUE NONCLUSTERED  ([AgentConnectFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AgentConnectBranch] ADD CONSTRAINT [FK_AgentConnectBranch_AgentConnect] FOREIGN KEY ([AgentConnectFID]) REFERENCES [dbo].[AgentConnect] ([AgentConnectID])
GO
GRANT SELECT ON  [dbo].[AgentConnectBranch] TO [MssExec]
GRANT INSERT ON  [dbo].[AgentConnectBranch] TO [MssExec]
GRANT DELETE ON  [dbo].[AgentConnectBranch] TO [MssExec]
GRANT UPDATE ON  [dbo].[AgentConnectBranch] TO [MssExec]
GO
Uses