refactor code needing version
Support INSERT RETURNING for SQL Server