For those attempting to help, I found this link that explains the requirements
There are 2 possible solutions, the first is the simple prefilled table with a flag to show if it has been activated or is available, and the row gets added back to the pool.
The second option is to create the ODN once the invoice has been created and committed as a final update.
This means having two numbers, and internal Invoice number and the public ODN, this allows the internal invoice number to have gaps while maintaining the sequential nature of the ODN, which is only generated after the invoice has been committed successfully.
_________________________________________________________________________
SSC Guide to Posting and Best Practices
Jason-299789 (6/4/2014)
For those attempting to help, I found this link that explains the requirementsThere are 2 possible solutions, the first is the simple prefilled table with a flag to show if it has been activated or is available, and the row gets added back to the pool.
The second option is to create the ODN once the invoice has been created and committed as a final update.
This means having two numbers, and internal Invoice number and the public ODN, this allows the internal invoice number to have gaps while maintaining the sequential nature of the ODN, which is only generated after the invoice has been committed successfully.
That second option is exactly what I was suggesting the OP could use but wasn't sure if that was allowed or not...apparently it is.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Sorry guys, but I dont understand how to implement it via SQL server....:w00t:
Viewing 9 posts - 16 through 23 (of 23 total)
You must be logged in to reply to this topic. Login to reply