SBendBuckeye
Programmer
Hello all,
I have an MDI application which needs to track historisity so a user can go back and select a prior point. I would like to implement this as a multicolumn key with the high order part a Guid (column ID) and the low order part an autoincrement integer (column Revision#). That way I can let Sql Server handle the increments.
My question is this, is there a way to do this in the context of a multicolumn primary key? What I would want to have happen is for the Revision# column to be set/reset to 0 whenever the ID column changes.
Is there a better way? Any ideas and/or suggestions would be greatly appreciated!
Have a great day!
j2consulting@yahoo.com
I have an MDI application which needs to track historisity so a user can go back and select a prior point. I would like to implement this as a multicolumn key with the high order part a Guid (column ID) and the low order part an autoincrement integer (column Revision#). That way I can let Sql Server handle the increments.
My question is this, is there a way to do this in the context of a multicolumn primary key? What I would want to have happen is for the Revision# column to be set/reset to 0 whenever the ID column changes.
Is there a better way? Any ideas and/or suggestions would be greatly appreciated!
Have a great day!
j2consulting@yahoo.com