Tables [dbo].[ARCActivity]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)2
Created7:07:56 PM Thursday, December 17, 2009
Last Modified3:46:14 PM Tuesday, November 18, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ARCActivity: ARCActivityIDARCActivityIDint4
No
1 - 1
LoggedDatedatetime8
No
(getdate())
Foreign Keys FK_ARCActivity_LoggedBySysuser: [dbo].[Sysuser].LoggedBySysuserFIDIndexes IX_ARCActivity_LoggedBySysuserFID: LoggedBySysuserFIDLoggedBySysuserFIDint4
No
Cluster Key IX_ARCActivity_CustomerNumber: CustomerNumberCustomerNumbervarchar(15)15
No
ActivityDatedatetime8
No
ActivityTypeDescriptionvarchar(128)128
No
ContactNamevarchar(50)50
Yes
Alertsvarchar(max)max
Yes
OrderNumbersvarchar(max)max
Yes
Invoicesvarchar(max)max
Yes
Notevarchar(max)max
No
Resultvarchar(128)128
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ARCActivity: ARCActivityIDPK_ARCActivityARCActivityID
Yes
80
Cluster Key IX_ARCActivity_CustomerNumber: CustomerNumberIX_ARCActivity_CustomerNumberCustomerNumber80
IX_ARCActivity_LoggedBySysuserFIDLoggedBySysuserFID
Foreign Keys Foreign Keys
NameColumns
FK_ARCActivity_LoggedBySysuserLoggedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ARCActivity]
(
[ARCActivityID] [int] NOT NULL IDENTITY(1, 1),
[LoggedDate] [datetime] NOT NULL CONSTRAINT [DF_ARCActivity_LoggedDate] DEFAULT (getdate()),
[LoggedBySysuserFID] [int] NOT NULL,
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ActivityDate] [datetime] NOT NULL,
[ActivityTypeDescription] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ContactName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Alerts] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OrderNumbers] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Invoices] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Note] [varchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Result] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCActivity] ADD CONSTRAINT [PK_ARCActivity] PRIMARY KEY NONCLUSTERED  ([ARCActivityID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_ARCActivity_CustomerNumber] ON [dbo].[ARCActivity] ([CustomerNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ARCActivity_LoggedBySysuserFID] ON [dbo].[ARCActivity] ([LoggedBySysuserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCActivity] ADD CONSTRAINT [FK_ARCActivity_LoggedBySysuser] FOREIGN KEY ([LoggedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ARCActivity] TO [MssExec]
GRANT INSERT ON  [dbo].[ARCActivity] TO [MssExec]
GRANT DELETE ON  [dbo].[ARCActivity] TO [MssExec]
GRANT UPDATE ON  [dbo].[ARCActivity] TO [MssExec]
GO
Uses