<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>JavaRanch JDBC</title>
        <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&amp;f=3</link>
        <description>A Friendly Place for Java Greenhorns</description>
        <image>
            <url>http://saloon.javaranch.com/ubb/moosefly.gif</url>
            <title>JavaRanch Big Moose Saloon</title>
            <link>http://saloon.javaranch.com/</link>
        </image>
        <language>en-us</language>
        <generator>JavaRanch RSS</generator>
        <copyright>Copyright 2007 Paul Wheaton. All Rights Reserved.</copyright>
        <item uniqueID="3-012555">
            <title>How to handle larg ResultSet</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012555</link>
            <description>I am a developing an application where the user can type any query and the query will be executed on a selected database.&lt;br /&gt; &lt;br /&gt;How can I handle a larg ResultSet? 10 millin + rows.&lt;br /&gt; &lt;br /&gt;I implemented pagination, so I don't transfer all of the rows, but the a select query takes 30 min to execute.&lt;br /&gt; &lt;br /&gt;I used Statement.setFetchSize() but it didn't help?&lt;br /&gt; &lt;br /&gt;Any suggestions?&lt;br /&gt; &lt;br /&gt;Thanks</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012555</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012555Hanna Habashy</comments>
            <author/>
            <pubDate>Fri, 9 May 2008 11:02:58 MDT</pubDate>
        </item>
        <item uniqueID="3-012554">
            <title>getting I/O Error: DB server closed connection</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012554</link>
            <description>I am getting the Following exception while trying to connect to the SQLSErver DB &lt;br /&gt; &lt;br /&gt;I am using jtds-1.2.2.jar File.&lt;br /&gt; &lt;br /&gt;I am using Windows Authentication and i am able to connect though the SQL SErver Client Application&lt;br /&gt; &lt;br /&gt;I complete stack trace is pasted below &lt;br /&gt; &lt;br /&gt;org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (I/O Error: DB server closed connection.)&lt;br /&gt;at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)&lt;br /&gt;at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)&lt;br /&gt;at sgstool.dbConnection.DBConnector.getSimpleConnection(DBConnector.java:43)&lt;br /&gt; &lt;br /&gt;Can anybody tell me why this is occuring and tel...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012554</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012554ivin jacob</comments>
            <author/>
            <pubDate>Fri, 9 May 2008 02:48:57 MDT</pubDate>
        </item>
        <item uniqueID="3-012553">
            <title>java</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012553</link>
            <description>How do you connect without the Class.forName (" ")</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012553</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012553manju pillaiyar</comments>
            <author/>
            <pubDate>Fri, 9 May 2008 01:26:57 MDT</pubDate>
        </item>
        <item uniqueID="3-012552">
            <title>JSP and Access - Date function problems</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012552</link>
            <description>Hi,&lt;br /&gt;We are designing a JSP page and the backend is MS-Access. In Access, the date format is in SHORT format (MM/dd/yyyy). Now I need to query my access tables using the Java date objects created in the JSP. The following is the method I am trying now:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; Calendar calendar = new GregorianCalendar();&lt;br /&gt; Date date = calendar.getTime();&lt;br /&gt; DateFormat localFormat = DateFormat.getDateInstance();&lt;br /&gt; &lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012552</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012552Hemavathy Viswanathan</comments>
            <author/>
            <pubDate>Thu, 8 May 2008 23:18:57 MDT</pubDate>
        </item>
        <item uniqueID="3-012551">
            <title>ResultSet is closed exception</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012551</link>
            <description>Hi All,&lt;br /&gt; &lt;br /&gt;I would appreciate it if somebody could help with below mentioned exception.&lt;br /&gt; &lt;br /&gt;5/8/08 11:06:53:810 EDT] 00000024 SystemErr R com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: ResultSet is closed.&lt;br /&gt;[5/8/08 11:06:53:810 EDT] 00000024 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.runtimeXIfNotClosed(WSJdbcResultSet.java:2691)&lt;br /&gt;[5/8/08 11:06:53:810 EDT] 00000024 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getString(WSJdbcResultSet.java:1830)&lt;br /&gt;[5/8/08 11:06:53:810 EDT] 00000024 SystemErr R at com.alticor.ebs.dbaccess.KeyIndQualStatAccess.getAllKeyIndPercntDtl(KeyIndQualStatAccess.java)&lt;br /&gt;[5/8/08 11:06:53:810 EDT] 00000024 SystemErr R at com.alticor.e...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012551</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012551suhem chauhan</comments>
            <author/>
            <pubDate>Thu, 8 May 2008 09:14:55 MDT</pubDate>
        </item>
        <item uniqueID="3-012550">
            <title>&amp;quot;Store Locator&amp;quot; sql results</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012550</link>
            <description>I'm following this guide&lt;br /&gt;http://code.google.com/support/bin/answer.py?answer=87134&amp;topic=11364 (http://code.google.com/support/bin/answer.py?answer=87134&amp;topic=11364)&lt;br /&gt;to help me create store locator functionality, but changing the code to java. I have not actually gotten to the part that i will need to change as it took me some time to automate the geocoder funcionality in js and then pass to the db.&lt;br /&gt; &lt;br /&gt;To test the Haversine sql code, i just tried it in the mysql command line window but i'm not getting any results.&lt;br /&gt; &lt;br /&gt;Here is what i'm getting.&lt;br /&gt; &lt;br /&gt;mysql&amp;gt; SELECT id, ( 3959 * acos( cos( radians(40) ) * cos( radians( lat ) ) * co&lt;br /&gt;s( radians( lng ) - radians(-73) ) + sin( radians(40) ) * sin( radians(...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012550</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012550Ilya Elkind</comments>
            <author/>
            <pubDate>Thu, 8 May 2008 09:08:55 MDT</pubDate>
        </item>
        <item uniqueID="3-012549">
            <title>problem in connecting oracle database</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012549</link>
            <description>i have used oracle as the database i think there is no problem in my java program because earlier it worked fine i think there is some problem in connecting to database.program is compiling but it keeps on running n not giving output.may be some problem in port number earlier i used 1521 it worked but now its not working please help me..........</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012549</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012549sunil ingalagi</comments>
            <author/>
            <pubDate>Wed, 7 May 2008 21:56:54 MDT</pubDate>
        </item>
        <item uniqueID="3-012548">
            <title>General error at connecting with JDBC-ODBC</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012548</link>
            <description>Hello!&lt;br /&gt; &lt;br /&gt;I'm getting "general error" while I'm trying connect to a MSAcces database.I've made the DNS with JDBC-ODBC and I'm running my Jsp page with Tomcat 6.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012548</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012548Ancu Mititean</comments>
            <author/>
            <pubDate>Wed, 7 May 2008 14:38:53 MDT</pubDate>
        </item>
        <item uniqueID="3-012547">
            <title>what is the use of setFetchSize and setMaxRows methods in Statement.</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012547</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; what is the use of setFetchSize and setMaxRows methods in Statement?&lt;br /&gt; &lt;br /&gt; what is the use of setFetchSize method in ResultSet? ( Already Statement has &lt;br /&gt; setFetchSize method) &lt;br /&gt; &lt;br /&gt;thanks,&lt;br /&gt;Thennam Pandian.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012547</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012547Thennam Pandian</comments>
            <author/>
            <pubDate>Wed, 7 May 2008 07:48:52 MDT</pubDate>
        </item>
        <item uniqueID="3-012546">
            <title>Result set empty</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012546</link>
            <description>Hi all,&lt;br /&gt;Basically i was makaing out one application. I had got the connection successfully, but when i iterate the resultset am getting no values as well as its size too is 0. Below am posting out the excerpts of my code and the output i'am getting. Can anyone please advice why this?&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt; try {&lt;br /&gt;conn = OracleDAOFactory.getConnection(DATA_SOURCE);// This data_source am getting from prop file&lt;br /&gt;System.out.println("Inside DAO 1-------------------------- "+conn);&lt;br /&gt;stmt = conn.createStatement();&lt;br /&gt;System.out.println("Inside DAO 2-------------------------- "+stmt);&lt;br /&gt;rs = stmt.executeQuery(QUERY);&lt;br /&gt;System.out.println("Inside DAO 3-------------------------- "+rs);&lt;br /&gt; &lt;br /&gt; &lt;/pre&gt;...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012546</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012546pranav bhatt</comments>
            <author/>
            <pubDate>Wed, 7 May 2008 06:32:52 MDT</pubDate>
        </item>
        <item uniqueID="3-012545">
            <title>db connection pool manager</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012545</link>
            <description>Dear all,&lt;br /&gt;i want not to make connection in classic way.. i want to use open source and easy for use as well as reliable connection pool manager for my project.&lt;br /&gt;would any one tell me about one popular of connection pool manager please.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012545</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012545hani Ibrahim</comments>
            <author/>
            <pubDate>Wed, 7 May 2008 04:46:52 MDT</pubDate>
        </item>
        <item uniqueID="3-012544">
            <title>PreparedStatement!</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012544</link>
            <description>Hi All,&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; please can anyone explain me the meaning of precompiled ...&lt;br /&gt; &lt;br /&gt; thanks &amp; regards,&lt;br /&gt; seetharaman</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012544</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012544seetharam venkatasamy</comments>
            <author/>
            <pubDate>Wed, 7 May 2008 04:28:52 MDT</pubDate>
        </item>
        <item uniqueID="3-012543">
            <title>monitoring querys</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012543</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;Its possible to know if someone is try to gain acces to my database ? &lt;br /&gt; &lt;br /&gt;I want to monitoring my database ( in sql server 2000 ) named PRODUTION.&lt;br /&gt; &lt;br /&gt;I whant a report or alert allways some service or app make a sql select against to my database . and this report must show me the user and the table that are afect&lt;br /&gt; &lt;br /&gt;Its possible to do that ? &lt;br /&gt; &lt;br /&gt;Regards</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012543</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012543Luis Fernandes</comments>
            <author/>
            <pubDate>Tue, 6 May 2008 09:02:49 MDT</pubDate>
        </item>
        <item uniqueID="3-012542">
            <title>Finding the number of active database connections</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012542</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt; Is it possible to find the number of active connections to a database using java? Am using Mysql.&lt;br /&gt; &lt;br /&gt;Regards&lt;br /&gt;Anil</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012542</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012542Anil Verghese</comments>
            <author/>
            <pubDate>Tue, 6 May 2008 07:36:49 MDT</pubDate>
        </item>
        <item uniqueID="3-012540">
            <title>does mysql support pl/sql?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012540</link>
            <description>does mysql support pl/sql?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012540</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012540mansi rughwani</comments>
            <author/>
            <pubDate>Tue, 6 May 2008 05:46:49 MDT</pubDate>
        </item>
        <item uniqueID="3-012539">
            <title>How to access an java API from oracle database</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012539</link>
            <description>Hi All,&lt;br /&gt; &lt;br /&gt;I need to access an API from a procedure, i.e. need to use an method present in it. Is there any way i can access the method.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012539</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012539Venkatesh Goriparthy</comments>
            <author/>
            <pubDate>Tue, 6 May 2008 00:34:48 MDT</pubDate>
        </item>
        <item uniqueID="3-012538">
            <title>need how on how to create a database</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012538</link>
            <description>hello everyone&lt;br /&gt;i need you help with the following questions&lt;br /&gt;i am tryig to create a database for my project with the following informantions. the database is on a accident log database of a police station listing &lt;br /&gt;- car imformation&lt;br /&gt;- car registration&lt;br /&gt;- times car been involved in accident&lt;br /&gt;- drivers informations&lt;br /&gt;- types of accidents&lt;br /&gt;- fine or purnishments&lt;br /&gt;- all other informations that can go into the database including usernames and passwords.&lt;br /&gt;would be greatfull if anybody can help me&lt;br /&gt;thank you all&lt;br /&gt;have a nice time coding</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012538</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012538Shuaibu Mohammed</comments>
            <author/>
            <pubDate>Mon, 5 May 2008 12:20:47 MDT</pubDate>
        </item>
        <item uniqueID="3-012537">
            <title>resultset.next() implicitly closed in MySQL</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012537</link>
            <description>Hello I have a problem with resultset implicitly closing after calling &lt;br /&gt;while(resultset.next())&lt;br /&gt; &lt;br /&gt;The exact error is:&lt;br /&gt;java.sql.SQLException: Operation not allowed after ResultSet closed at ... mypckg.MyClass.doPost(MyClass.java:123) at ...&lt;br /&gt;Line 123 is while(resultset.next())&lt;br /&gt; &lt;br /&gt;The query I was doing is some update statement. It works the first next() then SQLException. When I check the DB the record was updated ... just can't go to the next record and continue updating or if last record return false. &lt;br /&gt; &lt;br /&gt;Does anyone know what's the cause to this? I'm using Connector/J 5.1.5 JDBC driver for MySQL. &lt;br /&gt; &lt;br /&gt;Also according to the API for java.sql.ResultSet for the next() method &lt;br /&gt; &lt;blockquote&gt;...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012537</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012537K. Tsang</comments>
            <author/>
            <pubDate>Mon, 5 May 2008 07:20:46 MDT</pubDate>
        </item>
        <item uniqueID="3-012536">
            <title>Bigger type length than Maximum</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012536</link>
            <description>Hi,&lt;br /&gt; I'm running the following JDBC snippet and getting the exception "java.sql.SQLException: Bigger type length than Maximum"..&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Code Snippet&lt;br /&gt;--------------&lt;br /&gt;CallableStatement stmt = null;&lt;br /&gt;stmt = dbservice.getConnection().prepareCall("{ call mailpack.GET_ROW_COUNT(?,?,?,?) }");&lt;br /&gt;stmt.setString(1,dealerId);&lt;br /&gt;stmt.setString(2,userType);&lt;br /&gt;stmt.setString(3,viewSentReceived);&lt;br /&gt;stmt.registerOutParameter(4,OracleTypes.CURSOR);&lt;br /&gt;stmt.executeQuery();&lt;br /&gt;Stack Trace&lt;br /&gt;------------&lt;br /&gt; &lt;br /&gt;java.sql.SQLException: Bigger type length than Maximum&lt;br /&gt;at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)&lt;br /&gt;at oracle.jdbc.driver.DatabaseError.throwSqlException(...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012536</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012536Arpana Sinha</comments>
            <author/>
            <pubDate>Mon, 5 May 2008 06:26:46 MDT</pubDate>
        </item>
        <item uniqueID="3-012534">
            <title>Error inserting data into database after few successfull insert.</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012534</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I'm trying to insert 3000 reocrds into MySQL Database from CSV file using JDBC but after seccessfull insertion of aprox 1300 records, Its giving me the connection refuse to connect.&lt;br /&gt; &lt;br /&gt;Stack Trace : &lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; &lt;br /&gt;Updating Database Please Wait...&lt;br /&gt;2775&lt;br /&gt;com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: &lt;br /&gt; &lt;br /&gt;** BEGIN NESTED EXCEPTION ** &lt;br /&gt; &lt;br /&gt;java.net.SocketException&lt;br /&gt;MESSAGE: java.net.ConnectException: Connection refused: connect&lt;br /&gt; &lt;br /&gt;STACKTRACE:&lt;br /&gt; &lt;br /&gt;java.net.SocketException: java.net.ConnectException: Connection refused: connect&lt;br /&gt;at com.mysql.jdbc.StandardSocketFactory.connect(StandardSoc...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012534</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012534Jigar Naik</comments>
            <author/>
            <pubDate>Sun, 4 May 2008 09:38:34 MDT</pubDate>
        </item>
        <item uniqueID="3-012533">
            <title>java db derby</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012533</link>
            <description>Dear all,&lt;br /&gt;i want to ask about java db derby.i enter sun.com and i read about it.my question is "It is reliable for J2EE projects"&lt;br /&gt;anyone has an experience about it.&lt;br /&gt;Thanks a lot.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012533</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012533hani Ibrahim</comments>
            <author/>
            <pubDate>Sun, 4 May 2008 09:36:34 MDT</pubDate>
        </item>
        <item uniqueID="3-012532">
            <title>FileChooser.getSelected() turn into Blob</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012532</link>
            <description>I have a file chooser and I want to take the selected file, and turn it into a Blob so I can store it in a MySQL DB... Does anyone have any advice?&lt;br /&gt; &lt;br /&gt;Note: I did look around previous forums and didn't find anythign quite liek this.&lt;br /&gt; &lt;br /&gt;Here is a code snippit:&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; chooser = new JFileChooser();&lt;br /&gt; FileNameExtensionFilter filter = new FileNameExtensionFilter(&lt;br /&gt; "Textual documents", "doc", "txt");&lt;br /&gt; chooser.setFileFilter(filter);&lt;br /&gt; int returnVal = chooser.showOpenDialog(getParent());&lt;br /&gt; if(returnVal == JFileChooser.APPROVE_OPTION) {&lt;br /&gt; System.out.println("You chose to open this file: " +&lt;br /&gt; chooser.getSelectedFile().getName());&lt;br ...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012532</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012532Michael Paul</comments>
            <author/>
            <pubDate>Sat, 3 May 2008 10:06:31 MDT</pubDate>
        </item>
        <item uniqueID="3-012531">
            <title>Pass js value to select where clause</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012531</link>
            <description>Hi,&lt;br /&gt;I am trying to take the values from a hidden field created with a js function and pass them into a select...from...where clause and can't seem to get the syntax right. The js function stores the values like ("cat,dog") but for the where clause I need them to be like ("cat","dog"). I am not sure whether this is more a js question or jdbc question, so please forgive me if I am in the wrong forum. I will attach my function. Thanks in advance for any suggestions.&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; &lt;br /&gt; function populateHiddenStatus(fromObject,toObject) {&lt;br /&gt; var output = '';&lt;br /&gt; for (var i=0, l=fromObject.options.length;i&amp;lt;l;i++) {&lt;br /&gt; if (fromObject.options[i].selected)&lt;br /&gt; output +=(fromObject.option...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012531</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012531M Ryder</comments>
            <author/>
            <pubDate>Thu, 1 May 2008 12:22:25 MDT</pubDate>
        </item>
        <item uniqueID="3-012530">
            <title>Sql Connection </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012530</link>
            <description>ganeshseluka@gmail.com (mailto:ganeshseluka@gmail.com) &lt;b&gt;&lt;br /&gt;how to find sql Connection is open or closed&lt;/b&gt;</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012530</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012530ganesh seluka</comments>
            <author/>
            <pubDate>Thu, 1 May 2008 03:44:24 MDT</pubDate>
        </item>
        <item uniqueID="3-012529">
            <title>Connection problem with oracle</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012529</link>
            <description>I am trying to connect to oracle 10 g databas on my local system. operating system is vista. A using netbeans IDE&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;String url="jdbc:oracle:thin:@localhost:1521:orcl";&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt; Class.forName("oracle.jdbc.driver.OracleDriver");&lt;br /&gt; &lt;br /&gt; Connection con;&lt;br /&gt; con=DriverManager.getConnection(url,"system","deepak");&lt;br /&gt;&lt;br /&gt; java.sql.Statement stmt= con.createStatement();&lt;br /&gt;java.sql.ResultSet rs= stmt.executeQuery("select * from kbs");&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;while(rs.next())&lt;br /&gt;{&lt;br /&gt;System.out.println("values:"+rs.getInt(1));&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;catch(Exception e)&lt;br /&gt;{&lt;br /&gt;System.out.println("Error");&lt;br /&gt;e....</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012529</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012529deepak buddineni</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 23:44:23 MDT</pubDate>
        </item>
        <item uniqueID="3-012528">
            <title>Pl/sql getting row one by one</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012528</link>
            <description>Hi &lt;br /&gt; &lt;br /&gt;In my java class, I am connecting to a database and want to get a particular column (longblob type) from a particular table. I dont want to get all the rows in one time as I will get memory problem surely. &lt;br /&gt;I want to get a row one by one, So can anyone please tell me how should I do that?</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012528</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012528Vidu Greg</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 15:24:22 MDT</pubDate>
        </item>
        <item uniqueID="3-012527">
            <title>Regarding DatabaseMetaData interface </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012527</link>
            <description>Hi Friend,&lt;br /&gt; I am sidiq.&lt;br /&gt; I am working as java developer.&lt;br /&gt; I have question regarding java interface DatabaseMetaData. &lt;br /&gt; Below code is getting the column to the table namely OATSSEND. &lt;br /&gt; I known that OATSSEND table has only one column namely OATS_SEND_DATA. &lt;br /&gt; After following code ran I got ResultSet of size is 2 with same OATS_SEND_DATA was printed twice.&lt;br /&gt; &lt;br /&gt;public static List getTableCols(Connection con, String engine, String schemaPattern, String table) throws SQLException {&lt;br /&gt; &lt;br /&gt;List list = null;&lt;br /&gt;ResultSet rs = null;&lt;br /&gt;&lt;br /&gt;if(engine.equalsIgnoreCase( "as400DB2") &amp;#0124;&amp;#0124; engine.equalsIgnoreCase( "DB2"))&lt;br /&gt;{&lt;br /&gt; rs = con.getMetaData().getColumns( null, null," OATSS...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012527</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012527siddique sikkander</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 10:42:22 MDT</pubDate>
        </item>
        <item uniqueID="3-012526">
            <title>how to connect jsp to mysql</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012526</link>
            <description>can someone teach me? :(</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012526</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012526Mike Yeow</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 08:06:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012525">
            <title>Can I use a Clob as an attribute of a structured type (to map to a Java VO)? </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012525</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;I'm trying to use a Clob as an attribute of a structured type, but I'm having trouble retrieving the Clob from Oracle, resorting to explicitly retrieving it in a seperate query on a database column. Is there a way of retrieving it as part of a Java VO? I haven't found it explicitly printed where it's not possible, but I have a nagging idea that it isn't. Any ideas?&lt;br /&gt; &lt;br /&gt;I'm using Java 1.4 (soon to be Java 1.5), and Oracle 10.1.2.&lt;br /&gt; &lt;br /&gt;Any help, greatly appreciated.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;The code :&lt;br /&gt; &lt;br /&gt;My VO (CharacterDataVO) contains 2 attributes - an id (BigDecimal), and data (the Clob). I'm calling a stored procedure, and it bombs out when I hit callable.execute(), and reports a StringIndexOutOfBoundsExc...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012525</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012525Graham Wagg</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 06:30:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012524">
            <title>Conversion Blob to Byte Array</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012524</link>
            <description>I am trying to convert a Blob into a Byte array but sometimes when i run the application I get this exception&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Blob may not be manipulated from creating session &lt;/b&gt;&lt;br /&gt; &lt;br /&gt;this is the way i am converting Blob to byte Array&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;Blob blob = employerxLogo.getImageByte();&lt;br /&gt;byte[] tempByte = null;&lt;br /&gt;try {&lt;br /&gt;&lt;b&gt;int tempInt = (int) blob.length();&lt;br /&gt;tempByte = blob.getBytes(1, tempInt);&lt;/b&gt;} catch (SQLException e) {&lt;br /&gt;// TODO Auto-generated catch block&lt;br /&gt;throw new FacesException("Error");&lt;br /&gt;}&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;&lt;br /&gt; &lt;br /&gt;Is there another way to convert a java.sql.Blob into a Byte array</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012524</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012524Abiodun Adisa</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 05:58:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012523">
            <title>Error attempting to submit data via a form</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012523</link>
            <description>Hi all, I'm doing a very basic sign up page for myself and have run into a bit of bother. I have an SQL Database called "project", which has a table called "users" containing 2 fields - userName and password (very original I know), and a form which uses JSP to submit data to that database, to a table called users in particular.&lt;br /&gt;I can connect to the table in the database fine - if I access the page the data should be processed to, two blank values are added to the table. But when I attempt to submit the data via a form I get the following - &lt;br /&gt;java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;This is the JSP page that submits the data (I've taken out the unecessary HTML tags) :&lt;br ...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012523</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012523Gordon Emerson</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 04:38:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012522">
            <title>how to install JDBC?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012522</link>
            <description>i downloaded it. but cant find the setup </description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012522</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012522Mike Yeow</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 03:26:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012521">
            <title>nested object collection to PL/SQL Procedure as an Input </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012521</link>
            <description>How to send nested object collection to PL/SQL Procedure as an Input parameter.&lt;br /&gt; &lt;br /&gt;The scenario is there is a parent mapping object containing a collection(java.sql.Array) of child objects.&lt;br /&gt;I need to send the parent object collection to PL/SQL procedure as a input parameter.&lt;br /&gt;public class parent{&lt;br /&gt;String attr1;&lt;br /&gt;String attr2;&lt;br /&gt;Child[] attr3;&lt;br /&gt;}&lt;br /&gt;public class Child{&lt;br /&gt;String attr1;&lt;br /&gt;SubChild[] attr2;&lt;br /&gt;}&lt;br /&gt;public class SubChild{&lt;br /&gt;String attr1;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Urgent!!!</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012521</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012521Mehul Wani</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 03:18:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012520">
            <title>Prepared statement</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012520</link>
            <description>Looks like your interviewer is Dumb you are damm right &lt;br /&gt;prepared statements are pre compiled by query engine of any DBMS and it stores in the database ..</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012520</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012520Ris Yagnik</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 02:34:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012519">
            <title>jdbc oracle 8i connectivity</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012519</link>
            <description>I have SERVER 2000 server machine with oracle 8i enterpise version&lt;br /&gt;and client machine having xp and oracle 8i client&lt;br /&gt;server name "server"&lt;br /&gt;from sql it is working fine&lt;br /&gt;server ip address 192.168.100.1&lt;br /&gt;client ip address 192.168.100.12&lt;br /&gt;user id scott&lt;br /&gt;password tiger&lt;br /&gt;now i want to connect oracle database at server through jdbc &lt;br /&gt;java have been installed in client&lt;br /&gt;jdbc downloaded to this machine&lt;br /&gt;when i am running simple java file is working fine but &lt;br /&gt;i can not connect oracle through jdbc &lt;br /&gt;i wnat to ser classpath&lt;br /&gt;i am a beginer so kindly give me a very simple java file for oracle database connectivity&lt;br /&gt;with jdbc&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;thanking you &lt;br /&gt;anup</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012519</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012519Anup Bhattacharjee</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 02:32:21 MDT</pubDate>
        </item>
        <item uniqueID="3-012518">
            <title>Debug an Oracle procedure fired from JDBC?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012518</link>
            <description>How can I debug an Oracle procedure when the procedure is fired from a JDBC call? I am using weblogic 9..&lt;br /&gt; &lt;br /&gt;Regards&lt;br /&gt;Rahul</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012518</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012518Venkata Rahul</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 01:12:20 MDT</pubDate>
        </item>
        <item uniqueID="3-012517">
            <title>Not Quite sure how there is a SQLException on this line...</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012517</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;I am trying to just get the value of a column in a DB that stores an int. The value is not null. I have tried both using a column name and index number and with both I get a SQLException error. This is the code:&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; &lt;br /&gt;public void actionPerformed(ActionEvent evt) {&lt;br /&gt;JButton Clicked = (JButton) evt.getSource();&lt;br /&gt;ClickedText = Clicked.getText();&lt;br /&gt; System.out.println(ClickedText);&lt;br /&gt; &lt;br /&gt;try {&lt;br /&gt;General.Database.createDBConnection(); //establishes connection to DB&lt;br /&gt;Connection conn = (Connection) General.Database.getConn();&lt;br /&gt;Statement stmt = conn.createStatement();&lt;br /&gt;ResultSet rs = stmt.executeQuery("SELECT ProcessStep FROM table "&lt;br /&gt;+ "WHERE I...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012517</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012517Michael Paul</comments>
            <author/>
            <pubDate>Tue, 29 Apr 2008 18:58:20 MDT</pubDate>
        </item>
        <item uniqueID="3-012516">
            <title>Cannot create PoolableConnectionFactory </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012516</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;I have problems with using a database that is available on our remote server. &lt;br /&gt; &lt;br /&gt;My code works when I use local database with the settings in Tomcat&lt;br /&gt; &lt;br /&gt;&amp;lt;Resource name="jdbc/database" auth="Container" type="javax.sql.DataSource" username="user" password="pass" driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver" url="jdbc:microsoft:sqlserver://localhost:1433;databaseName=database" maxActive="200" maxIdle="100"/&amp;gt;&lt;br /&gt; &lt;br /&gt;I can even access all databases on LAN&lt;br /&gt;url="jdbc:microsoft:sqlserver://LANIP:1433;databaseName=database" &lt;br /&gt; &lt;br /&gt;but when I try accessing remote IP url="jdbc:microsoft:sqlserver://RemoteIP:1433;databaseName=database" &lt;br /&gt; &lt;br /&gt;I get this error &lt;br /&gt;org.apach...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012516</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012516Vivek Jain</comments>
            <author/>
            <pubDate>Tue, 29 Apr 2008 13:24:19 MDT</pubDate>
        </item>
        <item uniqueID="3-012515">
            <title>Prepared statment</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012515</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;Yesterday I faced one ques in interview....wats the diff. between prepared statement and simple statemnet,I said they are precomplied,then interviewer further asked me where the precomplied statement stroed so that we can call it again and again.&lt;br /&gt; &lt;br /&gt;I said it's stored in Database...but he said no...&lt;br /&gt; &lt;br /&gt;Please tell me the ans.I done some googling but didn't able to find the ans.&lt;br /&gt; &lt;br /&gt;Thanks</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012515</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012515Nidhi Jain</comments>
            <author/>
            <pubDate>Tue, 29 Apr 2008 03:16:18 MDT</pubDate>
        </item>
        <item uniqueID="3-012514">
            <title>Batch Insert</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012514</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;I am using oracle database. I want to do a batch insert, i want to know is it possible. I have Distribution Class which contains Distribution Package Id, Product Type List and Channel List. I have around List of 50000 Distribution objects which needs to be inserted into DB. &lt;br /&gt; &lt;br /&gt;I have two table Product , Product Channel. &lt;br /&gt; &lt;br /&gt;Product - Product Id (Sequence,PK),Package Id, Product Type&lt;br /&gt;Product Channel - Proudct Id , Channel Type&lt;br /&gt; &lt;br /&gt;I want to do the insert as batch so that i can improve performance. My algorithum would look like thsi,&lt;br /&gt; &lt;br /&gt;for each Distribution Object in the List&lt;br /&gt; Get the Package Id&lt;br /&gt; Get the Product List &lt;br /&gt; Get the Channel List&lt;br /&gt; for each Pro...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012514</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012514Arulanand Dayalan</comments>
            <author/>
            <pubDate>Mon, 28 Apr 2008 13:34:16 MDT</pubDate>
        </item>
        <item uniqueID="3-012513">
            <title>result value</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012513</link>
            <description>In the below code I am using a division operator division. How would I get the value of d?&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;rs = wds.getquery(scat, year)&lt;br /&gt; &lt;br /&gt;if(scat=="ALL)&lt;br /&gt;{&lt;br /&gt; double d = rs.getInt(2);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;double d1 = rs.getInt(2);&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;Double d = (d/d1) *100&lt;b&gt;//Here I am not able to get the value of d, it is showing zero.&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012513</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012513lakshmi manepally</comments>
            <author/>
            <pubDate>Mon, 28 Apr 2008 12:48:16 MDT</pubDate>
        </item>
        <item uniqueID="3-012512">
            <title>ORA-01874: time zone hour must be between -12 and 14</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012512</link>
            <description>I have an application which retrieves current time from the system (JVM) and accordingly does some oracle database updates. For testing purpose, I'm using following code to set JVM clock to past date, so that I can test the application without spending much time for setting up the test data every day. But I get the following error when when I try to connect to oracle. Any idea what's going on?&lt;br /&gt; &lt;br /&gt;Code for setting JVM time &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; &lt;br /&gt;public static void changeTime(final int hoursBehindParm) {&lt;br /&gt;&lt;br /&gt;int hoursBehind = 6 + hoursBehindParm;&lt;br /&gt;&lt;br /&gt;TimeZone.setDefault(new SimpleTimeZone((-hoursBehind * 60 * 60 * 1000)&lt;br /&gt;, "GMT" + Integer.toString(-hoursBehind)&lt;br /&gt;, Calendar.MARCH&lt;br /&gt;, 2&lt;br /&gt;...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012512</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012512Deb Sadhukhan</comments>
            <author/>
            <pubDate>Mon, 28 Apr 2008 10:06:15 MDT</pubDate>
        </item>
        <item uniqueID="3-012511">
            <title>'Connection has already been closed'. Random error connecting with a pool, platform i</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012511</link>
            <description>Hi all,&lt;br /&gt;I've got a problem I cannot solve, and really hope in someone's help...&lt;br /&gt;The fact is: I'm working on a webapp which doesn't made use of frameworks or patterns or similars. I introduced the DAO pattern in order to organize and speed up the work. At the core of the new classes there is the DBDAO, and this is the way it obtains the connection:&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt; protected Connection conn = null;&lt;br /&gt; &lt;br /&gt; ...&lt;br /&gt; &lt;br /&gt; protected Connection getConnection()&lt;br /&gt; {&lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt; if (conn == null &amp;#0124;&amp;#0124; conn.isClosed())&lt;br /&gt; {&lt;br /&gt; &lt;br /&gt; Context ctx = new InitialContext();&lt;br /&gt; javax.sql.DataSource ds=null;&lt;br /&gt; &lt;br /&gt;...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012511</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012511spinotto spina</comments>
            <author/>
            <pubDate>Mon, 28 Apr 2008 04:22:15 MDT</pubDate>
        </item>
        <item uniqueID="3-012510">
            <title>SQL query to retrieve all nodes from X up until the root node in a tree structure</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012510</link>
            <description>In my SQL-database 'exampledb' I've got a table called 'node' created using: (MySQL specific data included)&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;CREATE TABLE `exampledb`.`node` (&lt;br /&gt; `id` int(11) NOT NULL auto_increment,&lt;br /&gt; `parent_id` int(11) default NULL,&lt;br /&gt; PRIMARY KEY (`id`),&lt;br /&gt; KEY `FK6D20BC9B57485125` (`parent_id`)&lt;br /&gt;) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci;&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;&lt;br /&gt; &lt;br /&gt;This table holds id's of nodes as well as the id of their parent node. For example this tree (nodes represented by the id numbers):&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt; 1&lt;br /&gt; / \&lt;br /&gt; 2 3&lt;br /&gt; \&lt;br /&gt; 4&lt;br /&gt;&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;&lt;br /&gt;Is represented in the node table as&lt;br /&gt;&lt;blockquot...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012510</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012510Kent Larsson</comments>
            <author/>
            <pubDate>Fri, 25 Apr 2008 05:38:05 MDT</pubDate>
        </item>
        <item uniqueID="3-012509">
            <title>Refresh Cursor in Stored proc Oracle</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012509</link>
            <description>I have a stored procedure in which i define a cursor in the start like so:&lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;CURSOR PB_CANCEL_CUR IS SELECT * FROM TB_PB_TRADE_FEED&lt;br /&gt; WHERE MATCH_ID = 0&lt;br /&gt; AND ACTION_TYPE = 'C'&lt;br /&gt; AND ACTIVE_STATUS = 0 &lt;br /&gt;AND ERROR_FLAG ='N' ORDER BY TRADE_REF_NUMBER;&lt;br /&gt;&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;&lt;br /&gt; &lt;br /&gt;After this, i iterate the loop and upon some conditions, i change the ACTIVE_STATUS and ERROR_FLAG to different values. Upon such an updation, that record should get erased from my cursor.&lt;br /&gt;Hence, after the loop completes, i want to refresh my cursor, so that all such records which i updated during the loop, should now not be present in the cursor anymore. &lt;br /&gt; &lt;br /&gt;Please advise urgently....</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012509</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012509fahad siddiqui</comments>
            <author/>
            <pubDate>Fri, 25 Apr 2008 04:06:05 MDT</pubDate>
        </item>
        <item uniqueID="3-012508">
            <title>connectivity with remote mysql</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012508</link>
            <description>I am trying to run jsp page on remote server (Linux) and doing connectivity with mysql.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;%!&lt;br /&gt;Connection conn=null;&lt;br /&gt;PreparedStatement pst=null;&lt;br /&gt;ResultSet rs=null;&lt;br /&gt; &lt;br /&gt;%&amp;gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Class.forName("org.gjt.mm.mysql.Driver").newInstance();&lt;br /&gt;conn = DriverManager.getConnection("jdbc:mysql://localhost/databasename?user=&amp;lt;username&amp;gt;&amp;password=&amp;lt;password&amp;gt;");&lt;br /&gt;System.out.println("driver connected");&lt;br /&gt;}&lt;br /&gt;catch(Exception ex)&lt;br /&gt;{&lt;br /&gt; &lt;br /&gt;System.out.println(ex);&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;%&amp;gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;%&lt;br /&gt;String sql2="SELECT * FROM TABLENAME";&lt;br /&gt;PreparedStatement pst=conn.prepareStatement(sql2);&lt;br /&gt;rs=pst.executeQuer...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012508</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012508Deepak Rajkiran</comments>
            <author/>
            <pubDate>Fri, 25 Apr 2008 03:14:05 MDT</pubDate>
        </item>
        <item uniqueID="3-012507">
            <title>Doubt in Loading Driver</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012507</link>
            <description>Hi Friends&lt;br /&gt; &lt;br /&gt; 1) Please let me know what is difference between&lt;br /&gt; &lt;br /&gt; Class.formName("sun.jdbc.odbc.JdbcOdbcDriver");&lt;br /&gt; &lt;br /&gt; and &lt;br /&gt; &lt;br /&gt; Driver d=new sun.jdbc.odbc.JdbcOdbcDriver()&lt;br /&gt; &lt;br /&gt; 2) What is the purpose of registerDriver() method?&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;Kavitha</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012507</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012507kavitha vasu</comments>
            <author/>
            <pubDate>Fri, 25 Apr 2008 02:38:05 MDT</pubDate>
        </item>
        <item uniqueID="3-012506">
            <title>SQL server migration</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012506</link>
            <description>hi,&lt;br /&gt;We have machine where SQL 2005 server is installed.Atleast 3 web applications are running on it with data size 22GB in all. We need to migrate all data/tables/groups/users from this server to another server.On target server, SQL server 2005 will be installed.After that this migration activity needs to be carried out.what are options available to migrate to target server?&lt;br /&gt;Microsoft migration tool? Any already existing stored procedure etc?which is preferred solution in such case? java program?&lt;br /&gt;(There are no explicit stored procedures/triggers etc) database structure is quite simple.&lt;br /&gt; &lt;br /&gt;Thanks for help&lt;br /&gt; &lt;br /&gt; :)</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012506</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012506Arjun Shastry</comments>
            <author/>
            <pubDate>Thu, 24 Apr 2008 06:48:02 MDT</pubDate>
        </item>
        <item uniqueID="3-012505">
            <title>Error java.sql.SQLException: Exhausted Resultset</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012505</link>
            <description>Hi....&lt;br /&gt; im trying to retrieve a row from oracle database but its giving me an error as Error java.sql.SQLException: Exhausted Resultset&lt;br /&gt;when i select an item from jcombobox its giving me this error&lt;br /&gt;the error is in the following block..........&lt;br /&gt;please help me &lt;br /&gt; &lt;br /&gt;&lt;br /&gt; private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) { &lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt; con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:MyDatas","scott","tiger");&lt;br /&gt; stmt=con.createStatement();&lt;br /&gt; String selected_id = (String)jComboBox1.getSelectedItem();&lt;br /&gt; stmt = con.createStatement();&lt;br /&gt; rs = stmt.ex...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012505</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012505sunil ingalagi</comments>
            <author/>
            <pubDate>Wed, 23 Apr 2008 22:36:01 MDT</pubDate>
        </item>
        <item uniqueID="3-012504">
            <title>cannot retrieve table from my java program</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012504</link>
            <description>Hi..beginner in java programming...&lt;br /&gt;i have written java pgm to update and delete records from frame.&lt;br /&gt;i have created a column called 'r_code' in 'reason_code' table in oracle database. i can access all r_code data in jComboBox but it is giving me sqlException as Error java.sql.SQLException: ORA-01722: invalid number&lt;br /&gt; &lt;br /&gt;im getting error in following block&lt;br /&gt; &lt;br /&gt; private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) { &lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt; con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:MyDatas","scott","tiger");&lt;br /&gt; stmt=con.createStatement();&lt;br /&gt; String selected_id = (String)jComboBox1.getSelec...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012504</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=3&amp;t=012504sunil ingalagi</comments>
            <author/>
            <pubDate>Wed, 23 Apr 2008 12:40:00 MDT</pubDate>
        </item> 
    </channel>
</rss>
