<?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>TechieDrill &#187; derby</title>
	<atom:link href="http://techiedrill.com/tag/derby/feed/" rel="self" type="application/rss+xml" />
	<link>http://techiedrill.com</link>
	<description>Your World Of Technical Tutorials</description>
	<lastBuildDate>Tue, 05 Jan 2010 16:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Executing SQL from Apache Derby</title>
		<link>http://techiedrill.com/2009/11/executing-sql-from-apache-derby/</link>
		<comments>http://techiedrill.com/2009/11/executing-sql-from-apache-derby/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:41:14 +0000</pubDate>
		<dc:creator>karnamrajesh</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[derby]]></category>
		<category><![CDATA[execute]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=424</guid>
		<description><![CDATA[ 
Execute SQL statements
If connection is established properly with the Apache Derby, you can now execute simple sequel statements from your command prompt ij tool as shown below
Creating tables using ij tool
ij&#62; create table table_name(roll_no int, first_name varchar(10), last_name varchar(10));
Inserting values into the table
ij&#62; insert into table_name values (197878,&#8217;jack&#8217;,'Samurai&#8217;);
ij&#62; insert into table_name values (197823,&#8217;Corsa&#8217;,'Neo&#8217;);
ij&#62; insert [...]]]></description>
			<content:encoded><![CDATA[<p><strong> </strong></p>
<p><strong><span style="text-decoration: underline;">Execute SQL statements</span></strong></p>
<p>If connection is established properly with the Apache Derby, you can now execute simple sequel statements from your command prompt ij tool as shown below</p>
<p><strong><span style="text-decoration: underline;">Creating tables using ij tool</span></strong></p>
<p>ij&gt; create table table_name(roll_no int, first_name varchar(10), last_name varchar(10));</p>
<p><strong><span style="text-decoration: underline;">Inserting values into the table</span></strong></p>
<p>ij&gt; insert into table_name values (197878,&#8217;jack&#8217;,'Samurai&#8217;);</p>
<p>ij&gt; insert into table_name values (197823,&#8217;Corsa&#8217;,'Neo&#8217;);</p>
<p>ij&gt; insert into table_name values (197823,&#8217;Corsa&#8217;,'Morpheus&#8217;);</p>
<p><strong><span style="text-decoration: underline;">Updating values in a table</span></strong></p>
<p>ij&gt; update table_name set roll_no=197776, first_name=&#8217;Bruce&#8217; where roll_no=197878;</p>
<p><strong><span style="text-decoration: underline;">View the Table</span></strong></p>
<p>ij&gt; select * from table_name;</p>
<p>ij&gt; select * from table_name where roll_no=197776;</p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/executing-sql-from-apache-derby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Environment for Apache Derby and Connecting to DB</title>
		<link>http://techiedrill.com/2009/11/setting-environment-for-apache-derby-and-connecting-to-db/</link>
		<comments>http://techiedrill.com/2009/11/setting-environment-for-apache-derby-and-connecting-to-db/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:31:45 +0000</pubDate>
		<dc:creator>karnamrajesh</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[derby]]></category>
		<category><![CDATA[environment]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=422</guid>
		<description><![CDATA[Setting Environment for Apache Derby
Goto command prompt by keying on cmd from Run application launcher.
Goto your java classpath and give the below command
&#62; java org.apache.derby.tools.ij
Now your command prompt would change as shown below
ij&#62;
Note: you may get errors if classpath is not set correctly
Connecting to the database
Connect to the database by giving the below command in [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Setting Environment for Apache Derby</span></strong></p>
<p>Goto command prompt by keying on cmd from Run application launcher.</p>
<p>Goto your java classpath and give the below command</p>
<p><strong>&gt; java org.apache.derby.tools.ij</strong></p>
<p>Now your command prompt would change as shown below</p>
<p><em>ij&gt;</em></p>
<p>Note: you may get errors if classpath is not set correctly</p>
<p><strong><span style="text-decoration: underline;">Connecting to the database</span></strong></p>
<p>Connect to the database by giving the below command in the Derby ij tool</p>
<p><strong>ij&gt; connect &#8216;jdbc:derby:SampleTest;create=true&#8217;;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/setting-environment-for-apache-derby-and-connecting-to-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Apache Derby</title>
		<link>http://techiedrill.com/2009/11/installing-and-configuring-apache-derby/</link>
		<comments>http://techiedrill.com/2009/11/installing-and-configuring-apache-derby/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:24:37 +0000</pubDate>
		<dc:creator>karnamrajesh</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[derby]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://techiedrill.com/?p=419</guid>
		<description><![CDATA[Install Derby
Install Apache Derby from the below link
http://db.apache.org/derby/derby_downloads.html
&#8220;db-derby-10.5.1.1-bin.zip&#8221;
Go to Command Prompt by clicking start button and selecting RUN option.
Type cmd in the Run window to open the command prompt.
SET Derby INSTALL using the below command
&#62; set DERBY_INSTALL=D:\Program Files\Java\db-derby-10.5.1.1-bin
 
Configure Apache Derby
To configure Apache Derby in embedded mode connect derby jars to the classpath
derby.jar: contains the [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Install Derby</span></strong></p>
<p>Install Apache Derby from the below link</p>
<p><a href="http://db.apache.org/derby/derby_downloads.html">http://db.apache.org/derby/derby_downloads.html</a></p>
<p>&#8220;<strong>db-derby-10.5.1.1-bin.zip</strong>&#8221;</p>
<p>Go to <strong>Command Prompt</strong> by clicking start button and selecting RUN option.</p>
<p>Type cmd in the Run window to open the command prompt.</p>
<p>SET Derby INSTALL using the below command</p>
<p><strong>&gt; set DERBY_INSTALL=D:\Program Files\Java\db-derby-10.5.1.1-bin</strong></p>
<p><strong> </strong></p>
<p><strong><span style="text-decoration: underline;">Configure Apache Derby</span></strong></p>
<p>To configure Apache Derby in embedded mode connect derby jars to the classpath</p>
<p><strong>derby.jar</strong>: contains the Drive for JDBC engine</p>
<p><strong>derbytools.jar</strong>: this is a optional jar which installs a tool called &#8216;ij&#8217; which is used to query to our  databases</p>
<p>Set the classpath with the below command</p>
<p><strong>&gt; SET CLASSPATH=%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytools.jar;.</strong></p>
<p><strong> </strong></p>
<p><strong><span style="text-decoration: underline;">Test Apache Derby</span></strong></p>
<p>To test the Apache Derby installation give the below command in the command prompt</p>
<p><strong>&gt; </strong><strong>java org.apache.derby.tools.sysinfo</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://techiedrill.com/2009/11/installing-and-configuring-apache-derby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
