Tables [dbo].[harstateaccess]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count110
Created11:08:06 AM Wednesday, March 07, 2007
Last Modified11:09:59 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key XPKharstateaccess: stateobjid\usrgrpobjidForeign Keys HARSTATEACCESS_STATEID_FK: [dbo].[harstate].stateobjidstateobjidint4
No
Cluster Primary Key XPKharstateaccess: stateobjid\usrgrpobjidForeign Keys HARSTATEACCESS_USRGRPID_FK: [dbo].[harusergroup].usrgrpobjidusrgrpobjidint4
No
updateaccesschar(1)1
No
('N')
updatepkgaccesschar(1)1
No
('N')
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKharstateaccess: stateobjid\usrgrpobjidXPKharstateaccessstateobjid, usrgrpobjid
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
HARSTATEACCESS_STATEID_FKCascadestateobjid->[dbo].[harstate].[stateobjid]
HARSTATEACCESS_USRGRPID_FKCascadeusrgrpobjid->[dbo].[harusergroup].[usrgrpobjid]
Permissions
TypeActionOwning Principal
GrantDeleteharvest_group
GrantInsertharvest_group
GrantSelectharvest_group
GrantUpdateharvest_group
GrantSelectharvest_rep
SQL Script
CREATE TABLE [dbo].[harstateaccess]
(
[stateobjid] [int] NOT NULL,
[usrgrpobjid] [int] NOT NULL,
[updateaccess] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL CONSTRAINT [DF__harstatea__updat__34BEB830] DEFAULT ('N'),
[updatepkgaccess] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL CONSTRAINT [DF__harstatea__updat__35B2DC69] DEFAULT ('N')
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harstateaccess] ADD CONSTRAINT [XPKharstateaccess] PRIMARY KEY CLUSTERED ([stateobjid], [usrgrpobjid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harstateaccess] ADD CONSTRAINT [HARSTATEACCESS_STATEID_FK] FOREIGN KEY ([stateobjid]) REFERENCES [dbo].[harstate] ([stateobjid]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[harstateaccess] ADD CONSTRAINT [HARSTATEACCESS_USRGRPID_FK] FOREIGN KEY ([usrgrpobjid]) REFERENCES [dbo].[harusergroup] ([usrgrpobjid]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[harstateaccess] TO [harvest_group]
GRANT INSERT ON  [dbo].[harstateaccess] TO [harvest_group]
GRANT DELETE ON  [dbo].[harstateaccess] TO [harvest_group]
GRANT UPDATE ON  [dbo].[harstateaccess] TO [harvest_group]
GRANT SELECT ON  [dbo].[harstateaccess] TO [harvest_rep]
GO
Uses