Hi,
I have a table that has a field that holds a sequential order number in it, that is updated when a new record is added by a VB app. So for example, if the total current records count is a 100, and the app is adding one more, it will find the current number and add one to it; and insert it in this field. Before, I go on I should mention that they do not want this to be an Identity field. And normally this works great, but for reasons that would be too long to go into here, about 60 records got zeros put in; and they want me to the correct sequential number in each record. They thought that if I looked at the record number in query Analyzer I could use this, but I beleive that SQL Server orders it differently each time, if I rember right. Is there away to number the records?
I have a table that has a field that holds a sequential order number in it, that is updated when a new record is added by a VB app. So for example, if the total current records count is a 100, and the app is adding one more, it will find the current number and add one to it; and insert it in this field. Before, I go on I should mention that they do not want this to be an Identity field. And normally this works great, but for reasons that would be too long to go into here, about 60 records got zeros put in; and they want me to the correct sequential number in each record. They thought that if I looked at the record number in query Analyzer I could use this, but I beleive that SQL Server orders it differently each time, if I rember right. Is there away to number the records?