Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto increment - a little differently
Message
From
13/05/2004 11:30:37
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Auto increment - a little differently
Miscellaneous
Thread ID:
00903639
Message ID:
00903639
Views:
66
Ideally, I'd like to generate invoice numbers as an auto-incremented field where the seed value is stored in a table.

On insert the value should be seed value + 1 and the seed value should be updated accordingly.

I've tried a few things (and failed miserably) and would appreciate any ideas on the subject.

Just in case you're wondering: I can't start from scratch with an auto-incremented field because of inherited data.

TIA
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Next
Reply
Map
View

Click here to load this message in the networking platform