Tables [dbo].[harapprovehist]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:07:59 AM Wednesday, March 07, 2007
Last Modified11:09:55 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKharapprovehist: envobjid\stateobjid\packageobjid\usrobjid\execdtime\actionIndexes harapprhist_ind: packageobjidpackageobjidint4
No
Cluster Primary Key XPKharapprovehist: envobjid\stateobjid\packageobjid\usrobjid\execdtime\actionForeign Keys HARAPPROVEHIST_ENVID_FK: [dbo].[harenvironment].envobjidenvobjidint4
No
Cluster Primary Key XPKharapprovehist: envobjid\stateobjid\packageobjid\usrobjid\execdtime\actionstateobjidint4
No
Cluster Primary Key XPKharapprovehist: envobjid\stateobjid\packageobjid\usrobjid\execdtime\actionusrobjidint4
No
Cluster Primary Key XPKharapprovehist: envobjid\stateobjid\packageobjid\usrobjid\execdtime\actionexecdtimedatetime8
No
Cluster Primary Key XPKharapprovehist: envobjid\stateobjid\packageobjid\usrobjid\execdtime\actionactionvarchar(128)128
No
notevarchar(2000)2000
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKharapprovehist: envobjid\stateobjid\packageobjid\usrobjid\execdtime\actionXPKharapprovehistenvobjid, stateobjid, packageobjid, usrobjid, execdtime, action
Yes
harapprhist_indpackageobjid
Foreign Keys Foreign Keys
NameDeleteColumns
HARAPPROVEHIST_ENVID_FKCascadeenvobjid->[dbo].[harenvironment].[envobjid]
Permissions
TypeActionOwning Principal
GrantDeleteharvest_group
GrantInsertharvest_group
GrantSelectharvest_group
GrantUpdateharvest_group
GrantSelectharvest_rep
SQL Script
CREATE TABLE [dbo].[harapprovehist]
(
[packageobjid] [int] NOT NULL,
[envobjid] [int] NOT NULL,
[stateobjid] [int] NOT NULL,
[usrobjid] [int] NOT NULL,
[execdtime] [datetime] NOT NULL,
[action] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[note] [varchar] (2000) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harapprovehist] ADD CONSTRAINT [XPKharapprovehist] PRIMARY KEY CLUSTERED ([envobjid], [stateobjid], [packageobjid], [usrobjid], [execdtime], [action]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [harapprhist_ind] ON [dbo].[harapprovehist] ([packageobjid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harapprovehist] ADD CONSTRAINT [HARAPPROVEHIST_ENVID_FK] FOREIGN KEY ([envobjid]) REFERENCES [dbo].[harenvironment] ([envobjid]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[harapprovehist] TO [harvest_group]
GRANT INSERT ON  [dbo].[harapprovehist] TO [harvest_group]
GRANT DELETE ON  [dbo].[harapprovehist] TO [harvest_group]
GRANT UPDATE ON  [dbo].[harapprovehist] TO [harvest_group]
GRANT SELECT ON  [dbo].[harapprovehist] TO [harvest_rep]
GO
Uses
Used By