Tables [dbo].[SnapshotData]
Properties
PropertyValue
CollationLatin1_General_CI_AS_KS_WS
Row Count0
Created12:33:28 PM Tuesday, March 06, 2007
Last Modified12:33:28 PM Tuesday, March 06, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_SnapshotData: SnapshotDataIDSnapshotDataIDuniqueidentifier16
No
CreatedDatedatetime8
No
ParamsHashint4
Yes
QueryParamsntextmax
Yes
EffectiveParamsntextmax
Yes
Descriptionnvarchar(512)1024
Yes
DependsOnUserbit1
Yes
Indexes IS_SnapshotExpiration: PermanentRefcount\ExpirationDateIndexes IX_SnapshotCleaning: PermanentRefcount\TransientRefcountPermanentRefcountint4
No
Indexes IX_SnapshotCleaning: PermanentRefcount\TransientRefcountTransientRefcountint4
No
Indexes IS_SnapshotExpiration: PermanentRefcount\ExpirationDateExpirationDatedatetime8
No
PageCountint4
Yes
HasDocMapbit1
Yes
Machinenvarchar(512)1024
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_SnapshotData: SnapshotDataIDPK_SnapshotDataSnapshotDataID
Yes
IS_SnapshotExpirationPermanentRefcount, ExpirationDate
IX_SnapshotCleaningPermanentRefcount, TransientRefcount
Permissions
TypeActionOwning Principal
GrantDeleteRSExecRole
GrantInsertRSExecRole
GrantReferencesRSExecRole
GrantSelectRSExecRole
GrantUpdateRSExecRole
SQL Script
CREATE TABLE [dbo].[SnapshotData]
(
[SnapshotDataID] [uniqueidentifier] NOT NULL,
[CreatedDate] [datetime] NOT NULL,
[ParamsHash] [int] NULL,
[QueryParams] [ntext] COLLATE Latin1_General_CI_AS_KS_WS NULL,
[EffectiveParams] [ntext] COLLATE Latin1_General_CI_AS_KS_WS NULL,
[Description] [nvarchar] (512) COLLATE Latin1_General_CI_AS_KS_WS NULL,
[DependsOnUser] [bit] NULL,
[PermanentRefcount] [int] NOT NULL,
[TransientRefcount] [int] NOT NULL,
[ExpirationDate] [datetime] NOT NULL,
[PageCount] [int] NULL,
[HasDocMap] [bit] NULL,
[Machine] [nvarchar] (512) COLLATE Latin1_General_CI_AS_KS_WS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[SnapshotData] ADD CONSTRAINT [PK_SnapshotData] PRIMARY KEY CLUSTERED ([SnapshotDataID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IS_SnapshotExpiration] ON [dbo].[SnapshotData] ([PermanentRefcount], [ExpirationDate]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SnapshotCleaning] ON [dbo].[SnapshotData] ([PermanentRefcount], [TransientRefcount]) ON [PRIMARY]
GO
GRANT REFERENCES ON  [dbo].[SnapshotData] TO [RSExecRole]
GRANT SELECT ON  [dbo].[SnapshotData] TO [RSExecRole]
GRANT INSERT ON  [dbo].[SnapshotData] TO [RSExecRole]
GRANT DELETE ON  [dbo].[SnapshotData] TO [RSExecRole]
GRANT UPDATE ON  [dbo].[SnapshotData] TO [RSExecRole]
GO
Uses
Used By