SQL message table optimization

I have a storage requirement relating to messages.  I have 12 fixed length fields,  and one large variable length field.  I believe the large variable length field's length will grow in the near future, when they decide to include graphics. I have this feeling I should use two linked tables, instead of one, as follows.  I m thinking storage size will be reduced and indexing more effective.  What is Best Practices?

Kind Regards
Sam

CREATE TABLE [dbo].[MessageHead](
	[MessageID] [int] NOT NULL,
	[Subject] [nvarchar](128) NOT NULL,
	[CreateDate] [datetimeoffset](7) NOT NULL,
	[CreatedBY] [int] NOT NULL,
	[ModifyDate] [datetimeoffset](7) NULL,
	[ModifiedBY] [int] NULL,
	[ExpireDate] [datetimeoffset](7) NOT NULL,
	[DeleteDate] [datetimeoffset](7) NOT NULL,
	[Publish] [bit] NOT NULL,
	[TextType] [tinyint] NOT NULL,
	[DistributionEID] [int] NOT NULL,
 CONSTRAINT [PK_MessageHead_1] PRIMARY KEY CLUSTERED 
(
	[MessageID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[MessageHead]  WITH CHECK ADD  CONSTRAINT [FK_MessageHead_Contacts] FOREIGN KEY([CreatedBY])
REFERENCES [dbo].[Contacts] ([ContactID])
GO

ALTER TABLE [dbo].[MessageHead] CHECK CONSTRAINT [FK_MessageHead_Contacts]
GO

ALTER TABLE [dbo].[MessageHead]  WITH CHECK ADD  CONSTRAINT [FK_MessageHead_Contacts1] FOREIGN KEY([ModifiedBY])
REFERENCES [dbo].[Contacts] ([ContactID])
GO

ALTER TABLE [dbo].[MessageHead] CHECK CONSTRAINT [FK_MessageHead_Contacts1]
GO

Open in new window

CREATE TABLE [dbo].[Messages](
	[MessageID] [int] NOT NULL,
	[Message] [nvarchar](4000) NULL,
 CONSTRAINT [PK_Messages] PRIMARY KEY CLUSTERED 
(
	[MessageID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[Messages]  WITH CHECK ADD  CONSTRAINT [FK_Messages_MessageHead] FOREIGN KEY([MessageID])
REFERENCES [dbo].[MessageHead] ([MessageID])
ON UPDATE CASCADE
ON DELETE CASCADE
GO

ALTER TABLE [dbo].[Messages] CHECK CONSTRAINT [FK_Messages_MessageHead]
GO

Open in new window

SamCashAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MlandaTCommented:
near future, when they decide to include graphics
Considering this, should you not rather use a FILESTREAM? Or pointers to files stored outside the database rather? Plain text can be stored as plain text files. How many records are you looking at... Potentially?
SamCashAuthor Commented:
MlandaT,

Thanks much, I will have to read up on FILESTREAM...

From the users view: These are messages that are posted by various managers at different hierarchical levels and then read by lower levels (filtered) when they login to the website.  Analogous to Facebook posts, only currently plain text.  

They are already talking RTF, and .DOC, so I put in a "TextType" field to use to determine which control to use to render.  So in the future I see them wanting to paste in word doc's. with embedded images.

Potentially?  Currently 200,000 per year, they expect double or triple with this added feature.  If they successfully sell to other organizations then it would be a direct multiplier.  All customers are in the same db.

Thanks Again
Sam
Preston CooperDatabase AdministratorCommented:
If you separate the variable length field to a separate table it will make it easier to put it in a different file group.  Which you then could place the file group onto a separate drive.  This gives you more flexibility for performance later.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SamCashAuthor Commented:
Thanks much
Sam
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.