lib/active_record/connection_adapters/sqlserver_adapter.rb
# === SQLServer Specific (Connection Management) ================ #
SQLServer Specific (Connection Management)
SQLServer Specific ( Connection Management )
def connect
        config = @connection_options
        @connection = case config[:mode]
                      when :dblib
                        dblib_connect(config)
                      when :odbc
                        odbc_connect(config)
                      end
        @spid = _raw_select('SELECT @@SPID', fetch: :rows).first.first
        configure_connection
      end
def connect config = @connection_options @connection = case config [ :mode ] when :dblib dblib_connect ( config ) when :odbc odbc_connect ( config ) end @spid = _raw_select ( 'SELECT @@SPID' , fetch : :rows ) . first . first configure_connection end
SQLServer Specific (Connection Management)
SQLServer Specific ( Connection Management )