Tables [dbo].[InvoicedImage]
Properties
PropertyValue
Row Count (~)61894
Created10:12:49 PM Thursday, December 28, 2006
Last Modified1:54:40 PM Wednesday, April 10, 2024
Columns
NameData TypeComputedMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key pk_InvoicedImage: InvoicedImageIDInvoicedImageIDint4
No
1 - 1
Foreign Keys FK_InvoicedImage_InvoicedHeader: [dbo].[InvoicedHeader].InvoicedHeaderFIDIndexes IX_InvoicedImage_InvoicedHeaderFID: InvoicedHeaderFIDInvoicedHeaderFIDint4
No
InvoicedImageimagemax
No
Foreign Keys FK_InvoicedImage_ReportType: [dbo].[ReportType].ReportTypeFIDReportTypeFIDsmallint2
No
Foreign Keys FK_InvoicedImage_ReportArchiveType: [dbo].[ReportArchiveType].ReportArchiveTypeFIDReportArchiveTypeFIDint4
Yes
ImageByteSizeint(datalength([InvoicedImage]))4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key pk_InvoicedImage: InvoicedImageIDpk_InvoicedImageInvoicedImageID
Yes
80
IX_InvoicedImage_InvoicedHeaderFIDInvoicedHeaderFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_InvoicedImage_InvoicedHeaderCascadeInvoicedHeaderFID->[dbo].[InvoicedHeader].[IHPriKey]
FK_InvoicedImage_ReportArchiveTypeReportArchiveTypeFID->[dbo].[ReportArchiveType].[ReportArchiveTypeID]
FK_InvoicedImage_ReportTypeReportTypeFID->[dbo].[ReportType].[ReportTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InvoicedImage]
(
[InvoicedImageID] [int] NOT NULL IDENTITY(1, 1),
[InvoicedHeaderFID] [int] NOT NULL,
[InvoicedImage] [image] NOT NULL,
[ReportTypeFID] [smallint] NOT NULL,
[ReportArchiveTypeFID] [int] NULL,
[ImageByteSize] AS (datalength([InvoicedImage]))
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoicedImage] ADD CONSTRAINT [pk_InvoicedImage] PRIMARY KEY CLUSTERED  ([InvoicedImageID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_InvoicedImage_InvoicedHeaderFID] ON [dbo].[InvoicedImage] ([InvoicedHeaderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoicedImage] ADD CONSTRAINT [FK_InvoicedImage_InvoicedHeader] FOREIGN KEY ([InvoicedHeaderFID]) REFERENCES [dbo].[InvoicedHeader] ([IHPriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[InvoicedImage] ADD CONSTRAINT [FK_InvoicedImage_ReportArchiveType] FOREIGN KEY ([ReportArchiveTypeFID]) REFERENCES [dbo].[ReportArchiveType] ([ReportArchiveTypeID])
GO
ALTER TABLE [dbo].[InvoicedImage] ADD CONSTRAINT [FK_InvoicedImage_ReportType] FOREIGN KEY ([ReportTypeFID]) REFERENCES [dbo].[ReportType] ([ReportTypeID])
GO
GRANT SELECT ON  [dbo].[InvoicedImage] TO [MssExec]
GRANT INSERT ON  [dbo].[InvoicedImage] TO [MssExec]
GRANT DELETE ON  [dbo].[InvoicedImage] TO [MssExec]
GRANT UPDATE ON  [dbo].[InvoicedImage] TO [MssExec]
GO
Uses
Used By