HobbyMan, give your PK column an Integer datatype and specify it as an Identity column. The default start (seed) value is 1 and the default increment is 1.
When inserting, you don't need to reference the column at all (i.e. you don't need to call NextVal), as the server will automatically insert the new value.
Identity columns, in and of themselves, do not guarantee a unique number, but since you typically have a PK contstraint on that column, it will work out that way. [sig]<p>Robert Bradley<br><a href=mailto: > </a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.