<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>threehv &#187; adaptive server anywhere</title>
	<atom:link href="http://www.3hv.co.uk/blog/tag/adaptive-server-anywhere/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3hv.co.uk/blog</link>
	<description>precision engineering for your website</description>
	<lastBuildDate>Fri, 13 Jan 2012 16:18:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using ActiveRecord to connect to Sybase Adaptive Server Anywhere on Windows</title>
		<link>http://www.3hv.co.uk/blog/2009/12/21/using-activerecord-to-connect-to-sybase-adaptive-server-anywhere-on-windows/</link>
		<comments>http://www.3hv.co.uk/blog/2009/12/21/using-activerecord-to-connect-to-sybase-adaptive-server-anywhere-on-windows/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 21:18:33 +0000</pubDate>
		<dc:creator>Rahoul Baruah</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ruby on Rails and Software Development]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[adaptive server anywhere]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sybase]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.3hv.co.uk/blog/?p=619</guid>
		<description><![CDATA[Just don&#8217;t ask why I know this. Please. It&#8217;s making me cry. Install Ruby using the One Click Installer. Install the ODBC module (by copying the SO files into the c:\Ruby\1.8\i386-mingw32 folder). Install the ActiveRecord ODBC adapter (gem install activerecord-odbc-adapter). Edit C:\Ruby\lib\ruby\gems\1.8\gems\activerecord-odbc-adapter-2.0\ lib\active_record\connection_adapters\odbc_adapter.rb &#8211; look for line 1588. Change the line from elsif dbmsName =~ [...]]]></description>
			<content:encoded><![CDATA[<p>Just don&#8217;t ask why I know this.  Please.  It&#8217;s making me cry.  </p>
<p>Install Ruby using the <a href="http://rubyinstaller.org/">One Click Installer</a>.<br />
Install the <a href="http://ch-werner.de/rubyodbc/">ODBC module</a> (by copying the SO files into the c:\Ruby\1.8\i386-mingw32 folder).<br />
Install the ActiveRecord ODBC adapter (gem install activerecord-odbc-adapter).<br />
Edit C:\Ruby\lib\ruby\gems\1.8\gems\activerecord-odbc-adapter-2.0\ lib\active_record\connection_adapters\odbc_adapter.rb &#8211; look for line 1588.<br />
Change the line from<code> elsif dbmsName =~ /SQLAnywhere/i</code> to <code>elsif dbmsName =~ /SQLAnywhere/i or dbmsName =~ /adaptiveserveranywhere/i</code></p>
<p>Write some test code &#8211; something like: </p>
<p><code><br />
require 'rubygems'<br />
require 'active_record'</p>
<p>ActiveRecord::Base.establish_connection(:adapter => :odbc, :dsn => 'mydsn', :username => 'myusername', :password => 'mypassword')</p>
<p>class Whatever < ActiveRecord::Base</p>
<p>end</p>
<p>Whatever.all<br />
</code><br />
Run this - hopefully you should get no errors.<br />
Then sit down and have a long think about what the hell you are doing.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.3hv.co.uk/blog/2009/12/21/using-activerecord-to-connect-to-sybase-adaptive-server-anywhere-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.187 seconds -->

