By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,574 Members | 1,968 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,574 IT Pros & Developers. It's quick & easy.

Increment an order number which is not pure numbers

P: 44
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
Share this Question
Share on Google+
1 Reply

code green
Expert 100+
P: 1,726
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.