Skip to content

Instantly share code, notes, and snippets.

@sixfeetover
Created April 5, 2012 19:47
Show Gist options
  • Save sixfeetover/2313551 to your computer and use it in GitHub Desktop.
Save sixfeetover/2313551 to your computer and use it in GitHub Desktop.
Set SQL Server options in rails for tiny_tds
module ActiveRecord
module ConnectionAdapters
class SQLServerAdapter < AbstractAdapter
def configure_connection
raw_connection_do "set concat_null_yields_null on; set nocount on;"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment