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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Custom ID for Table 1

Status
Not open for further replies.

alexanderthegreat

IS-IT--Management
Sep 9, 2005
70
US
I want to create a custom ID for my orders table so that it assigns a number like ORD00001 automatically.
As the next order is placed it will enter ORD00002 etc..

How can I accomplish this?

Al
 
use a computed column to define a concatenation of the string 'ORD' and your normal IDENTITY column

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top