Tables [dbo].[VanlineStatementImport]
Properties
PropertyValue
Row Count (~)0
Created8:59:53 AM Friday, October 11, 2024
Last Modified8:59:57 AM Friday, October 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_VanlineStatementImport: VanlineStatementImportIDVanlineStatementImportIDint4
No
1 - 1
Foreign Keys FK_VanlineStatementImport_VanlineStatementHeader: [dbo].[VanlineStatementHeader].VanlineStatementHeaderFIDIndexes IX_VanlineStatementImport_VanlineStatementHeader: VanlineStatementHeaderFIDVanlineStatementHeaderFIDint4
No
Foreign Keys FK_VanlineStatementImport_StatementHeader: [dbo].[StatementHeader].StatementHeaderFIDIndexes IX_VanlineStatementImport_StatementHeader: StatementHeaderFIDStatementHeaderFIDint4
No
ImportedDatedatetime8
No
Foreign Keys FK_VanlineStatementImport_SysUser: [dbo].[Sysuser].SysUserFIDIndexes IX_VanlineStatementImport_SysUser: SysUserFIDSysUserFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_VanlineStatementImport: VanlineStatementImportIDPK_VanlineStatementImportVanlineStatementImportID
Yes
IX_VanlineStatementImport_StatementHeaderStatementHeaderFID
IX_VanlineStatementImport_SysUserSysUserFID
IX_VanlineStatementImport_VanlineStatementHeaderVanlineStatementHeaderFID
Foreign Keys Foreign Keys
NameColumns
FK_VanlineStatementImport_StatementHeaderStatementHeaderFID->[dbo].[StatementHeader].[SHPriKey]
FK_VanlineStatementImport_SysUserSysUserFID->[dbo].[Sysuser].[SysUserID]
FK_VanlineStatementImport_VanlineStatementHeaderVanlineStatementHeaderFID->[dbo].[VanlineStatementHeader].[VanlineStatementHeaderID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[VanlineStatementImport]
(
[VanlineStatementImportID] [int] NOT NULL IDENTITY(1, 1),
[VanlineStatementHeaderFID] [int] NOT NULL,
[StatementHeaderFID] [int] NOT NULL,
[ImportedDate] [datetime] NOT NULL,
[SysUserFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineStatementImport] ADD CONSTRAINT [PK_VanlineStatementImport] PRIMARY KEY CLUSTERED  ([VanlineStatementImportID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanlineStatementImport_StatementHeader] ON [dbo].[VanlineStatementImport] ([StatementHeaderFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanlineStatementImport_SysUser] ON [dbo].[VanlineStatementImport] ([SysUserFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanlineStatementImport_VanlineStatementHeader] ON [dbo].[VanlineStatementImport] ([VanlineStatementHeaderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanlineStatementImport] ADD CONSTRAINT [FK_VanlineStatementImport_StatementHeader] FOREIGN KEY ([StatementHeaderFID]) REFERENCES [dbo].[StatementHeader] ([SHPriKey])
GO
ALTER TABLE [dbo].[VanlineStatementImport] ADD CONSTRAINT [FK_VanlineStatementImport_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[VanlineStatementImport] ADD CONSTRAINT [FK_VanlineStatementImport_VanlineStatementHeader] FOREIGN KEY ([VanlineStatementHeaderFID]) REFERENCES [dbo].[VanlineStatementHeader] ([VanlineStatementHeaderID])
GO
GRANT SELECT ON  [dbo].[VanlineStatementImport] TO [MssExec]
GRANT INSERT ON  [dbo].[VanlineStatementImport] TO [MssExec]
GRANT DELETE ON  [dbo].[VanlineStatementImport] TO [MssExec]
GRANT UPDATE ON  [dbo].[VanlineStatementImport] TO [MssExec]
GO
Uses