<?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>Alex's Adventures in CodeSpace &#187; dbpool</title>
	<atom:link href="http://www.blogalex.com/archives/tag/dbpool/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blogalex.com</link>
	<description>Alejandro Guerrieri's Blog</description>
	<lastBuildDate>Wed, 10 Feb 2010 23:16:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MS-SQL and Sybase support for Kannel via FreeTDS</title>
		<link>http://www.blogalex.com/archives/99</link>
		<comments>http://www.blogalex.com/archives/99#comments</comments>
		<pubDate>Tue, 28 Apr 2009 19:59:21 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Kannel]]></category>
		<category><![CDATA[dbpool]]></category>
		<category><![CDATA[freetds]]></category>
		<category><![CDATA[ms-sql]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[sybase]]></category>

		<guid isPermaLink="false">http://www.blogalex.com/?p=99</guid>
		<description><![CDATA[I've been working integrating with FreeTDS, an open source project that provides a free, open source driver for the tabular data system protocol used on MS-SQL and Sybase DB Engines.
The result is a DBPool module that makes Kannel capable of talking with MS-SQL and Sybase DB's.]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: This patch has been officially accepted into the main tree. Just download the latest CVS and you&#8217;re all set.</strong></p>
<p>The following article is now old news:</p>
<p>I&#8217;ve been working integrating Kannel with <a href="http://www.freetds.org/" target="_blank">FreeTDS</a>, an open source project that provides a free, open source driver for the tabular data system protocol used on MS-SQL and Sybase DB Engines.</p>
<p>The result is a DBPool module that makes Kannel capable of talking with MS-SQL and Sybase DB&#8217;s.</p>
<p>To use this module you need to have <a href="http://www.freetds.org/" target="_blank">FreeTDS</a> installed on your kannel box (either by compiling the source code or installing binary packages). If you&#8217;re installing from packages, do not forget to install the development packages as well (otherwise you won&#8217;t be able to compile Kannel).</p>
<p>Once you&#8217;ve installed <a href="http://www.freetds.org/" target="_blank">FreeTDS</a>, configure the freetds.conf and make sure that everything works properly. Hint: use the tsql command line utility and try connecting to your DB server).</p>
<p>To compile this into Kannel, you need to download and apply this patch. Since it touches the configure template, you need to bootstrap the code afterwards. In short:</p>
<blockquote><p>1. Download the patch <a href="http://www.blogalex.com/wp-content/uploads/2009/04/kannel-dbpool-mssql.patch">kannel-dbpool-mssql</a> to Kannel&#8217;s source root directory<br />
2. Apply the patch: patch -p0 &lt; kannel-dbpool-mssql.patch<br />
3. ./bootstrap.sh (only the first time after applying the patch)<br />
4. ./configure &#8211;with-mssql=[optional path] [--other-switches]<br />
5. make<br />
6. sudo make install</p></blockquote>
<p>Now, to configure the DB-Link, you need to add a dbpool group to kannel&#8217;s configuration files. It should look similar to this:</p>
<blockquote><p>group = mssql-connection<br />
id = mssql-db<br />
username = myuser<br />
password = mypass<br />
server = server_name<br />
database =my_db_name</p></blockquote>
<p>Note: server_name should match the [server_name] group for the DB link on your freetds.conf file.</p>
<p>Right now, this patch only adds the functionality to make Kannel FreeTDS-capable. I&#8217;m adding support for DLR&#8217;s and SqlBox soon, so stay tuned!</p>
<p>Here&#8217;s the patch: <a href="http://www.blogalex.com/wp-content/uploads/2009/04/kannel-dbpool-mssql.patch">kannel-dbpool-mssql</a></p>
<p>As usual, please try it and let me know how it goes.</p>
<p>Regards,</p>
<p>Alex</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogalex.com/archives/99/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
