Possible to generate sequential numbers without database table?
<p>I'm writing a simple web form for a client in ASP.NET. The form sends an e-mail when submitted. One of the requirements is that each e-mail should have a sequential ticket number.</p>

<p>The two options I've come up with for accomplishing this involve writing the last number to a database, then selecting it out and incrementing it, or doing a similar operation with a text file. </p>

<p>I'd like to avoid an external dependency if possible, and creating a database table for a single value seems like overkill. The text file approach is really hacky, though, and prone to failure if the text file got deleted or overwritten. </p>

<p>Are there any other options I might consider?</p>
