<?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>Robin&#039;s Tech Tips &#187; programming</title>
	<atom:link href="http://robin.mytechtip.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://robin.mytechtip.com</link>
	<description>Just another My Tech Tip weblog</description>
	<lastBuildDate>Wed, 06 Jul 2011 02:35:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>derby db connecting problem (using ij)</title>
		<link>http://robin.mytechtip.com/2008/12/05/derby-db-connecting-ij/</link>
		<comments>http://robin.mytechtip.com/2008/12/05/derby-db-connecting-ij/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 02:52:43 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[javadb]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://robin.mytechtip.com/2008/12/05/3/</guid>
		<description><![CDATA[derby db connecting problem (using ij)
This problem happened to me when i tried the apache derby database (now it&#8217;s also called java db, part of jdk 6).
Trying the following command in ij (the bundled simple console) just gave me an error like this &#8220;ERROR: Unable to establish connection&#8221;:
ij&#62; connect &#8220;jdbc:derby://localhost/firstdb;create=true&#8221;;
It&#8217;s annoying, because i didn&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>derby db connecting problem (using ij)</p>
<p>This problem happened to me when i tried the <a id="fu93" title="apache derby database" href="http://db.apache.org/derby/" onclick="javascript:pageTracker._trackPageview('/outbound/article/db.apache.org');">apache derby database</a> (now it&#8217;s also called <a id="l3fl" title="java db" href="http://developers.sun.com/javadb/" onclick="javascript:pageTracker._trackPageview('/outbound/article/developers.sun.com');">java db</a>, part of jdk 6).<br />
Trying the following command in ij (the bundled simple console) just gave me an error like this &#8220;ERROR: Unable to establish connection&#8221;:</p>
<blockquote id="bsue"><p>ij&gt; connect &#8220;jdbc:derby://localhost/firstdb;create=true&#8221;;</p></blockquote>
<p>It&#8217;s annoying, because i didn&#8217;t know what&#8217;s wrong from the error message.<br />
Finally, i found out the reason, which is quite trivial. That is: i should not use the double quote (&#8221;) to quote the database url. Instead, i need to use single quote (&#8217;).</p>
<p>Maybe it&#8217;s documented somewhere in the derby documents, which , unfortunately, i missed.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3371750151985752";
google_ad_slot = "0950801022";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://robin.mytechtip.com/2008/12/05/derby-db-connecting-ij/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

