Tables [dbo].[harstateprocessaccess]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count255
Created11:08:00 AM Wednesday, March 07, 2007
Last Modified11:09:56 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key XPKharstateprocessaccess: stateobjid\processobjid\usrgrpobjidForeign Keys HARSTATEPROCACCESS_SPID_FK: [dbo].[harstateprocess].stateobjid\processobjidstateobjidint4
No
Cluster Primary Key XPKharstateprocessaccess: stateobjid\processobjid\usrgrpobjidForeign Keys HARSTATEPROCACCESS_SPID_FK: [dbo].[harstateprocess].stateobjid\processobjidprocessobjidint4
No
Cluster Primary Key XPKharstateprocessaccess: stateobjid\processobjid\usrgrpobjidForeign Keys HARSTATEPROCACCESS_USRGRP_FK: [dbo].[harusergroup].usrgrpobjidusrgrpobjidint4
No
executeaccesschar(1)1
No
('N')
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKharstateprocessaccess: stateobjid\processobjid\usrgrpobjidXPKharstateprocessaccessstateobjid, processobjid, usrgrpobjid
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
HARSTATEPROCACCESS_SPID_FKCascadestateobjid->[dbo].[harstateprocess].[stateobjid]
processobjid->[dbo].[harstateprocess].[processobjid]
HARSTATEPROCACCESS_USRGRP_FKCascadeusrgrpobjid->[dbo].[harusergroup].[usrgrpobjid]
Permissions
TypeActionOwning Principal
GrantDeleteharvest_group
GrantInsertharvest_group
GrantSelectharvest_group
GrantUpdateharvest_group
GrantSelectharvest_rep
SQL Script
CREATE TABLE [dbo].[harstateprocessaccess]
(
[stateobjid] [int] NOT NULL,
[processobjid] [int] NOT NULL,
[usrgrpobjid] [int] NOT NULL,
[executeaccess] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL CONSTRAINT [DF__harstatep__execu__3C5FD9F8] DEFAULT ('N')
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harstateprocessaccess] ADD CONSTRAINT [XPKharstateprocessaccess] PRIMARY KEY CLUSTERED ([stateobjid], [processobjid], [usrgrpobjid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harstateprocessaccess] ADD CONSTRAINT [HARSTATEPROCACCESS_SPID_FK] FOREIGN KEY ([stateobjid], [processobjid]) REFERENCES [dbo].[harstateprocess] ([stateobjid], [processobjid]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[harstateprocessaccess] ADD CONSTRAINT [HARSTATEPROCACCESS_USRGRP_FK] FOREIGN KEY ([usrgrpobjid]) REFERENCES [dbo].[harusergroup] ([usrgrpobjid]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[harstateprocessaccess] TO [harvest_group]
GRANT INSERT ON  [dbo].[harstateprocessaccess] TO [harvest_group]
GRANT DELETE ON  [dbo].[harstateprocessaccess] TO [harvest_group]
GRANT UPDATE ON  [dbo].[harstateprocessaccess] TO [harvest_group]
GRANT SELECT ON  [dbo].[harstateprocessaccess] TO [harvest_rep]
GO
Uses