Tables [dbo].[harcomment]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:03 AM Wednesday, March 07, 2007
Last Modified11:09:57 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKharcomment: formobjidForeign Keys HARCOMMENT_FORMID_FK: [dbo].[harform].formobjidformobjidint4
No
commentdatedatetime8
Yes
commentedbychar(44)44
Yes
commentkeywordvarchar(66)66
Yes
commentsvarchar(2000)2000
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKharcomment: formobjidXPKharcommentformobjid
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
HARCOMMENT_FORMID_FKCascadeformobjid->[dbo].[harform].[formobjid]
Permissions
TypeActionOwning Principal
GrantDeleteharvest_group
GrantInsertharvest_group
GrantSelectharvest_group
GrantUpdateharvest_group
GrantSelectharvest_rep
SQL Script
CREATE TABLE [dbo].[harcomment]
(
[formobjid] [int] NOT NULL,
[commentdate] [datetime] NULL,
[commentedby] [char] (44) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[commentkeyword] [varchar] (66) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[comments] [varchar] (2000) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harcomment] ADD CONSTRAINT [XPKharcomment] PRIMARY KEY CLUSTERED ([formobjid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harcomment] ADD CONSTRAINT [HARCOMMENT_FORMID_FK] FOREIGN KEY ([formobjid]) REFERENCES [dbo].[harform] ([formobjid]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[harcomment] TO [harvest_group]
GRANT INSERT ON  [dbo].[harcomment] TO [harvest_group]
GRANT DELETE ON  [dbo].[harcomment] TO [harvest_group]
GRANT UPDATE ON  [dbo].[harcomment] TO [harvest_group]
GRANT SELECT ON  [dbo].[harcomment] TO [harvest_rep]
GO
Uses