Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Primary Key from Trigger(?)

Status
Not open for further replies.

orangey

Programmer
Dec 20, 2001
4
US
Hi -

I need to have a primary key set for a user everytime they add a new record to the database.

I need the PK to be 10 digits long and to start with "020102" and go up incrementally from there.

Any suggestions how to do this?

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top