Tables [dbo].[hardemoteproc]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count32
Created11:08:00 AM Wednesday, March 07, 2007
Last Modified11:09:55 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key XPKhardemoteproc: processobjidForeign Keys HARDEMOTEPROC_SPID_FK: [dbo].[harstateprocess].stateobjid\processobjidprocessobjidint4
No
processnamechar(128)128
No
Foreign Keys HARDEMOTEPROC_SPID_FK: [dbo].[harstateprocess].stateobjid\processobjidstateobjidint4
No
tostateidint4
No
demotechgschar(1)1
No
carrychgschar(1)1
No
creationtimedatetime8
No
creatoridint4
No
modifiedtimedatetime8
No
modifieridint4
No
notevarchar(2000)2000
Yes
enforcebindchar(1)1
No
('N')
checkdependencieschar(1)1
No
('N')
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKhardemoteproc: processobjidXPKhardemoteprocprocessobjid
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
HARDEMOTEPROC_SPID_FKCascadestateobjid->[dbo].[harstateprocess].[stateobjid]
processobjid->[dbo].[harstateprocess].[processobjid]
Permissions
TypeActionOwning Principal
GrantDeleteharvest_group
GrantInsertharvest_group
GrantSelectharvest_group
GrantUpdateharvest_group
GrantSelectharvest_rep
SQL Script
CREATE TABLE [dbo].[hardemoteproc]
(
[processobjid] [int] NOT NULL,
[processname] [char] (128) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[stateobjid] [int] NOT NULL,
[tostateid] [int] NOT NULL,
[demotechgs] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[carrychgs] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[creationtime] [datetime] NOT NULL,
[creatorid] [int] NOT NULL,
[modifiedtime] [datetime] NOT NULL,
[modifierid] [int] NOT NULL,
[note] [varchar] (2000) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[enforcebind] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL CONSTRAINT [DF__hardemote__enfor__1D1C38C9] DEFAULT ('N'),
[checkdependencies] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL CONSTRAINT [DF__hardemote__check__1E105D02] DEFAULT ('N')
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[hardemoteproc] ADD CONSTRAINT [XPKhardemoteproc] PRIMARY KEY CLUSTERED ([processobjid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[hardemoteproc] ADD CONSTRAINT [HARDEMOTEPROC_SPID_FK] FOREIGN KEY ([stateobjid], [processobjid]) REFERENCES [dbo].[harstateprocess] ([stateobjid], [processobjid]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[hardemoteproc] TO [harvest_group]
GRANT INSERT ON  [dbo].[hardemoteproc] TO [harvest_group]
GRANT DELETE ON  [dbo].[hardemoteproc] TO [harvest_group]
GRANT UPDATE ON  [dbo].[hardemoteproc] TO [harvest_group]
GRANT SELECT ON  [dbo].[hardemoteproc] TO [harvest_rep]
GO
Uses