Tables [dbo].[topic_view]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count6
Created4:53:08 PM Sunday, February 07, 2010
Last Modified4:53:08 PM Sunday, February 07, 2010
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityIdentity Replication
Cluster Primary Key pk_topic_view2: topic_view_idtopic_view_idint4
No
1 - 1
No
Indexes IX_topic_id: topic_idtopic_idvarchar(40)40
No
Indexes IX_topic_username: usernameusernamenvarchar(255)510
No
track_msg_idint4
No
Indexes IX_topic_start_time: start_timestart_timedatetime8
No
Indexes IX_topic_end_time: end_timeend_timedatetime8
No
view_time_spanint4
No
Indexes IX_topic_play_mode: play_modeplay_modechar(1)1
No
scoreint4
Yes
passedtinyint1
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_topic_view2: topic_view_idpk_topic_view2topic_view_id
Yes
IX_topic_end_timeend_time
IX_topic_idtopic_id
IX_topic_play_modeplay_mode
IX_topic_start_timestart_time
IX_topic_usernameusername
SQL Script
CREATE TABLE [dbo].[topic_view]
(
[topic_view_id] [int] NOT NULL IDENTITY(1, 1) NOT FOR REPLICATION,
[topic_id] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[username] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[track_msg_id] [int] NOT NULL,
[start_time] [datetime] NOT NULL,
[end_time] [datetime] NOT NULL,
[view_time_span] [int] NOT NULL,
[play_mode] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[score] [int] NULL,
[passed] [tinyint] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[topic_view] ADD CONSTRAINT [pk_topic_view2] PRIMARY KEY CLUSTERED ([topic_view_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_topic_end_time] ON [dbo].[topic_view] ([end_time]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_topic_play_mode] ON [dbo].[topic_view] ([play_mode]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_topic_start_time] ON [dbo].[topic_view] ([start_time]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_topic_id] ON [dbo].[topic_view] ([topic_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_topic_username] ON [dbo].[topic_view] ([username]) ON [PRIMARY]
GO
Uses