Applies to: MS SQL identity columns; the thread names no Clarion or SQL Server version (2012).
Problem
A developer porting a TPS application to MS SQL asked how others handle existing TPS auto-increment fields that already contain data when they become identity columns.
Solution
- Turn the identity (auto-numbering) off temporarily on the SQL table, so the existing values can be inserted as they are.
- The poster linked the Microsoft documentation page for this (an msdn.microsoft.com library page, ms188059) and confirmed it was what he needed.
Caveats
- The thread is five lines long. It does not say how to turn the identity back on, what the next number will be, or how to do the copy from Clarion.
- The thread does not say whether the poster tested it.
- A second poster only asked what the problem was, which suggests he saw no difficulty in the step.
Today (2026)
The idea (insert explicit values with the identity switched off, then switch it on) is likely still how SQL Server works, but this entry does not repeat the syntax because the thread did not. Read the current SQL Server documentation for the statement. See also the hub entry on "Cannot insert explicit value for identity column", which covers the driver's INSERT.
Sources: Steven M. (Jul 2012, the question), Ruben B., Jon W. (Jul 2012) in softvelocity.clarion.databasedrivers.