I have a table with 2 primary keys (int, int) and was wondering if it was possible to have one of the primary keys set to auto increment and the other not? The following is the basics of the table structure:
Table
{
Id - Int,
VersionId - Int
}
Basically I have an Id with a Version so that there is a complete history of that record and therefor can be rolled back at any time.
I want to be able to insert and Id and for it to then automatically handle the version number for me. Is this possible?
Thanks in advance.