adrianblunt
Programmer
I need to be able to retrieve a unique number from a sequential list from a SQL Server 2000 database (like the SEQUENCE object in Oracle).
There doesn't seem to be anything quite like this in SQL Server - I have read previous posts here, and all replies suggest using an IDENTITY fiels. However, this only generates a new number when adding new rows to a database table. I need something that generates a new number every time it is READ.
Thanks in advance.
Adrian.
There doesn't seem to be anything quite like this in SQL Server - I have read previous posts here, and all replies suggest using an IDENTITY fiels. However, this only generates a new number when adding new rows to a database table. I need something that generates a new number every time it is READ.
Thanks in advance.
Adrian.