method

set_identity_insert

set_identity_insert(table_name, enable = true)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb, line 528
        def set_identity_insert(table_name, enable = true)
          execute "SET IDENTITY_INSERT #{table_name} #{enable ? 'ON' : 'OFF'}"
        rescue Exception => e
          raise ActiveRecordError, "IDENTITY_INSERT could not be turned #{enable ? 'ON' : 'OFF'} for table #{table_name}"  
        end