Tables [dbo].[PMImportDetailDist]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:05:54 PM Monday, January 28, 2013
Last Modified7:34:04 PM Tuesday, September 24, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_PMImportDetailDist: PMImportDetailDistIDPMImportDetailDistIDint4
No
1 - 1
Foreign Keys FK_PMImportDetailDist_PMImportDetail: [dbo].[PMImportDetail].PMImportDetailFIDIndexes IX_PMImportDetailDist_PMImportDetailFID: PMImportDetailFIDPMImportDetailFIDint4
No
ExternalCodevarchar(10)10
Yes
Amountmoney8
Yes
InvoiceNumbervarchar(30)30
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_PMImportDetailDist: PMImportDetailDistIDPK_PMImportDetailDistPMImportDetailDistID
Yes
IX_PMImportDetailDist_PMImportDetailFIDPMImportDetailFID
Foreign Keys Foreign Keys
NameColumns
FK_PMImportDetailDist_PMImportDetailPMImportDetailFID->[dbo].[PMImportDetail].[PMImportDetailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[PMImportDetailDist]
(
[PMImportDetailDistID] [int] NOT NULL IDENTITY(1, 1),
[PMImportDetailFID] [int] NOT NULL,
[ExternalCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NULL,
[InvoiceNumber] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PMImportDetailDist] ADD CONSTRAINT [PK_PMImportDetailDist] PRIMARY KEY CLUSTERED  ([PMImportDetailDistID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_PMImportDetailDist_PMImportDetailFID] ON [dbo].[PMImportDetailDist] ([PMImportDetailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PMImportDetailDist] ADD CONSTRAINT [FK_PMImportDetailDist_PMImportDetail] FOREIGN KEY ([PMImportDetailFID]) REFERENCES [dbo].[PMImportDetail] ([PMImportDetailID])
GO
GRANT SELECT ON  [dbo].[PMImportDetailDist] TO [MssExec]
GRANT INSERT ON  [dbo].[PMImportDetailDist] TO [MssExec]
GRANT DELETE ON  [dbo].[PMImportDetailDist] TO [MssExec]
GRANT UPDATE ON  [dbo].[PMImportDetailDist] TO [MssExec]
GO
Uses
Used By