Quote:
|
quote:that way I don't have to generate numbers from the program and have the program check the database to see if that number already exists
|
And what if two clients create the same number and then try to insert a new record at the same time with that number?
You should rely on SQL to take care of this, or look at the uniqueidentifier data type which is also unique, but allows you to create an ID up front (a GUID) using code.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to:
My List by
The Killers (Track 9 from the album:
Sam's Town)
What's This?