Tables [dbo].[usm_doctmpl_layoutlist]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:01 AM Wednesday, March 07, 2007
Last Modified7:08:57 AM Monday, July 20, 2009
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK__usm_doctmpl_layo__5A5CB338: document_template_id\order\content_orderForeign Keys $usm_d_r0000226b00000000: [dbo].[usm_document_template].document_template_iddocument_template_idvarchar(50)50
No
Cluster Primary Key PK__usm_doctmpl_layo__5A5CB338: document_template_id\order\content_orderorderint4
No
((-1))
report_layout_idvarchar(64)64
Yes
Cluster Primary Key PK__usm_doctmpl_layo__5A5CB338: document_template_id\order\content_ordercontent_orderint4
No
((-1))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK__usm_doctmpl_layo__5A5CB338: document_template_id\order\content_orderPK__usm_doctmpl_layo__5A5CB338document_template_id, order, content_order
Yes
Foreign Keys Foreign Keys
NameUpdateDeleteColumns
$usm_d_r0000226b00000000CascadeCascadedocument_template_id->[dbo].[usm_document_template].[document_template_id]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_doctmpl_layoutlist]
(
[document_template_id] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[order] [int] NOT NULL CONSTRAINT [DF__usm_doctm__order__58746AC6] DEFAULT ((-1)),
[report_layout_id] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[content_order] [int] NOT NULL CONSTRAINT [DF__usm_doctm__conte__59688EFF] DEFAULT ((-1))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_doctmpl_layoutlist] ADD CONSTRAINT [PK__usm_doctmpl_layo__5A5CB338] PRIMARY KEY CLUSTERED ([document_template_id], [order], [content_order]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_doctmpl_layoutlist] ADD CONSTRAINT [$usm_d_r0000226b00000000] FOREIGN KEY ([document_template_id]) REFERENCES [dbo].[usm_document_template] ([document_template_id]) ON DELETE CASCADE ON UPDATE CASCADE
GO
GRANT SELECT ON  [dbo].[usm_doctmpl_layoutlist] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_doctmpl_layoutlist] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_doctmpl_layoutlist] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_doctmpl_layoutlist] TO [usmgroup]
GO
Uses