module ActiveRecord::ConnectionAdapters::SQLServer::DatabaseLimits

Public Instance Methods

index_name_length() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/database_limits.rb, line 15
def index_name_length
  128
end
table_alias_length() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/database_limits.rb, line 7
def table_alias_length
  128
end
table_name_length() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/database_limits.rb, line 11
def table_name_length
  128
end

Private Instance Methods

bind_params_length() click to toggle source

The max number of binds is 2100, but because sp_executesql takes the first 2 params as the query string and the list of types, we have only 2098 spaces left

# File lib/active_record/connection_adapters/sqlserver/database_limits.rb, line 24
def bind_params_length
  2_098
end
insert_rows_length() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/database_limits.rb, line 28
def insert_rows_length
  1_000
end