Tables [dbo].[ARCTask]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1
Created7:07:56 PM Thursday, December 17, 2009
Last Modified3:46:14 PM Tuesday, November 18, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ARCTask: ARCTaskIDARCTaskIDint4
No
1 - 1
DueDatedatetime8
No
Foreign Keys FK_ARCTask_AssignedToSysuser: [dbo].[Sysuser].AssignedToSysuserFIDIndexes IX_ARCTask_AssignedToSysuserFID: AssignedToSysuserFIDAssignedToSysuserFIDint4
No
TaskDescriptionvarchar(256)256
No
Cluster Key IX_ARCTask_CustomerNumber: CustomerNumberCustomerNumbervarchar(15)15
No
OrderNumbersvarchar(max)max
Yes
Invoicesvarchar(max)max
Yes
Alertsvarchar(max)max
Yes
IsCompletedbit1
No
CompletedDatedatetime8
Yes
Foreign Keys FK_ARCTask_CompletedBySysuser: [dbo].[Sysuser].CompletedBySysuserFIDIndexes IX_ARCTask_CompletedBySysuserFID: CompletedBySysuserFIDCompletedBySysuserFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ARCTask: ARCTaskIDPK_ARCTaskARCTaskID
Yes
80
IX_ARCTask_AssignedToSysuserFIDAssignedToSysuserFID
IX_ARCTask_CompletedBySysuserFIDCompletedBySysuserFID
Cluster Key IX_ARCTask_CustomerNumber: CustomerNumberIX_ARCTask_CustomerNumberCustomerNumber80
Foreign Keys Foreign Keys
NameColumns
FK_ARCTask_AssignedToSysuserAssignedToSysuserFID->[dbo].[Sysuser].[SysUserID]
FK_ARCTask_CompletedBySysuserCompletedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ARCTask]
(
[ARCTaskID] [int] NOT NULL IDENTITY(1, 1),
[DueDate] [datetime] NOT NULL,
[AssignedToSysuserFID] [int] NOT NULL,
[TaskDescription] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[OrderNumbers] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Invoices] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Alerts] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsCompleted] [bit] NOT NULL,
[CompletedDate] [datetime] NULL,
[CompletedBySysuserFID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCTask] ADD CONSTRAINT [PK_ARCTask] PRIMARY KEY NONCLUSTERED  ([ARCTaskID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ARCTask_AssignedToSysuserFID] ON [dbo].[ARCTask] ([AssignedToSysuserFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ARCTask_CompletedBySysuserFID] ON [dbo].[ARCTask] ([CompletedBySysuserFID]) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_ARCTask_CustomerNumber] ON [dbo].[ARCTask] ([CustomerNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCTask] ADD CONSTRAINT [FK_ARCTask_AssignedToSysuser] FOREIGN KEY ([AssignedToSysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[ARCTask] ADD CONSTRAINT [FK_ARCTask_CompletedBySysuser] FOREIGN KEY ([CompletedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ARCTask] TO [MssExec]
GRANT INSERT ON  [dbo].[ARCTask] TO [MssExec]
GRANT DELETE ON  [dbo].[ARCTask] TO [MssExec]
GRANT UPDATE ON  [dbo].[ARCTask] TO [MssExec]
GO
Uses