Everyone,
I have a table with field ID as an identity, and another field Revision (both are PK, both integer). Many other fields follow. The idea is each ID can have multiple revisions. The problem is I don't want a user to have to enter data every time there is a new revision. I would like for a new record to be created on the table with all the data, same ID, but new revision number. I'm trying to get a stored procedure to work where the user gets prompted for the ID and revision number and perform an insert of the remaining data but am having trouble with the set identity command. Any thoughts on how to approach this would be appreciated. Thanks. drStealth
I have a table with field ID as an identity, and another field Revision (both are PK, both integer). Many other fields follow. The idea is each ID can have multiple revisions. The problem is I don't want a user to have to enter data every time there is a new revision. I would like for a new record to be created on the table with all the data, same ID, but new revision number. I'm trying to get a stored procedure to work where the user gets prompted for the ID and revision number and perform an insert of the remaining data but am having trouble with the set identity command. Any thoughts on how to approach this would be appreciated. Thanks. drStealth