If this is the wrong forum, please move this thread.
I've got two tables:
email_table
columns are emailNo, JobNo, emailBody, etc.
and
email_attachments
columns (right now) are EmailNo and AttachmentPath
There is a one to many relationship from email_table to email_attachments.
Primary key on email_table is emailNo. I need advice on how to designate the primary key on email_attachments. Is it advisable to use the combination of EmailNo and AttachmentPath for the primary key, or should I create a third column that is an identity field? The data in the AttachmentPath field is just a file location, ie //server3/client/job12/attachment.pdf.
Any suggestions are welcome.
-Dan
I've got two tables:
email_table
columns are emailNo, JobNo, emailBody, etc.
and
email_attachments
columns (right now) are EmailNo and AttachmentPath
There is a one to many relationship from email_table to email_attachments.
Primary key on email_table is emailNo. I need advice on how to designate the primary key on email_attachments. Is it advisable to use the combination of EmailNo and AttachmentPath for the primary key, or should I create a third column that is an identity field? The data in the AttachmentPath field is just a file location, ie //server3/client/job12/attachment.pdf.
Any suggestions are welcome.
-Dan