467,917 Members | 1,402 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,917 developers. It's quick & easy.

Increment an order number which is not pure numbers

Hi there,

I am looking for a method to insert an order number which is in the following text format.

TT001, TT002, TT003, etc.

How could I achieve this in MS SQL Server?

Thanks ahead.
Sep 3 '08 #1
  • viewed: 1022
1 Reply
code green
Expert 1GB
The order number is perfectly legal if inserted in a text field.
I assume you are concerned about this being a primary key.
Well a PK does not have to be an auto-increment or even an integer.
It is just faster if it is
Sep 3 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

16 posts views Thread by Jason | last post: by
4 posts views Thread by Kerry | last post: by
2 posts views Thread by Tom | last post: by
reply views Thread by Anders W. Pedersen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.