Is it considered a good practice to use the undocumented spt_values
table in SQL Server as a source of consecutive numbers?
Is there a risk that this could break in a future release of SQL Server or it safe as long as you don't care about portability?
I have been burned by using undocumented functions in Oracle before (wm_concat
specifically) so my specific question is the likelihood that spt_values
will continue to be supported in future SQL Server versions.