Hello, I'm using a process of insert and I need to create a LineNbr, I know it has to negative but does it have to be consecutive? Is that a condition to the process or it's ok if I just insert a negative number?
*This post is locked for comments
You did not indicate what table you are inserting a record into but it depends on whether the LineNbr field is part of a unique index into that table. If you open SQL Management studio and execute the following command
sp_help xxxxxx where xxxxxx is the table involved
you can scroll down to the index definitions for that table and see if LineNbr is part of a unique index. If the table is one of the standard SL tables then it is very likely that LineNbr must be unique or, at least, unique within the other elements of the index.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156