I am not a DBA so I could use some advice on something a I fumbling through. I desire to have a clustered index on a column other than the Primary Key. I have a few junction tables that I may want to alter, create table, or ...
I have practiced with an example table that is not really a junction table. It is just a table I decided to use for practice. When I execute the script, it seems to do everything I expect. For instance, there are not any constraints but there are indexes. The PK is the correct column. The script I created seems good to me.
So here is my question, "Does this script create questions for you or does it seem normal?" Maybe there is a better way or a more conventional approach.
CREATE TABLE [dbo].[tblNotificationMgr]( [NotificationMgrKey] [int] IDENTITY(1,1) NOT NULL, [ContactKey] [int] NOT NULL, [EventTypeEnum] [tinyint] NOT NULL, CONSTRAINT [tblNotificationMgr$PrimaryKey] PRIMARY KEY NONCLUSTERED ( [NotificationMgrKey] )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO CREATE CLUSTERED INDEX [tblNotificationMgr$ContactKey] ON [tblNotificationMgr] ([ContactKey] ASC) GO
- Moved by Kalman TothModerator 37 minutes ago Design