Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how do I generate bespoke autoID

Author  Topic 

jamesbob
Starting Member

2 Posts

Posted - 2009-04-24 : 09:10:42
HI all,

How do I generate a bespoke identity like CC3000, CC3001, CC3002 etc
There was already something posted along this line, but it went way over my head as I'm new to SQL server and normally work with DB2 dbases.
Do you use a tabled value function or something. If possible could someone could show mw this?

JamesBob

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-04-24 : 09:14:16
See http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-04-24 : 11:08:42
Also Refer this

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=57069


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

jamesbob
Starting Member

2 Posts

Posted - 2009-04-25 : 06:26:49
thank you Peso and
Madhivanan. got that working ok. you guys are class!
Go to Top of Page
   

- Advertisement -