Recommend me a database...

581 byte By GM_UAMa at 2007-11-27 4:46:43
Hi,I'm looking for a free database to use with a java application. Ideally the database would be widely hosted by cheaper web-hosting companies (it is largely for my own practice but I would like it to be able to grow if all goes well).My ideal choice would be mySQL, which I had assumed was ...

orcale 9i jdbc connection problem

359 byte By roger5089a at 2007-11-27 4:47:01
dear all i have one problem with jdbc by orcale when i connect to databae which has some error message by db connection? the driver and connect which is correct if i setup code and db in same machine , but if in diff mechine which indicte that java.sql.SQLException: IO error: The Network ...

orcale 9i jdbc connection problem

359 byte By roger5089a at 2007-11-27 4:47:02
dear all i have one problem with jdbc by orcale when i connect to databae which has some error message by db connection? the driver and connect which is correct if i setup code and db in same machine , but if in diff mechine which indicte that java.sql.SQLException: IO error: The Network ...

Problem checking day of week from date

649 byte By alancola at 2007-11-27 4:47:03
i'm trying to find out the day of the week from a date stored in a database.i am using smallsql for my database.s.executeQuery("select * from results");ResultSet result=s.getResultSet();result.next();day=result.getString(1);System.out.println(day); sql="select dayofweek({d "+day+"}) from ...

Newbie : Complete Connect java program to DB2

1478 byte By Sarvanandaa at 2007-11-27 4:47:27
Dear all, I am failry versed with java and jdbc. I did a lot of google and searched a lot of forums but no one gave me all the details. I have done a lot of oracle jdbc. I would appreciate if some one could give me all the details please. I dont even know which jar files should be in the ...

Replacing the sun CachedRowSet with OracleCachedRowSet

468 byte By moponta at 2007-11-27 4:48:36
WellI had a problem with the sun's CachedRowSet and oracle's Clobs/Blobs (IT'S A BUG AND I ALREADY REPORTED TO SUN)As a workaround somebody suggested using the OracleCachedRowSet but how can i put this to work....... if it realy works......can somebody help with this?There is another way of ...

hello pls let me know whats wrong with following lines of code?

188 byte By mandar-JavaCuriousa at 2007-11-27 4:50:57
st.execute("insert into user values"+newUser+","+newPass);i am trying to take the values from awt there newuser and newPass are the values taken from the textboxes of the awt

is there any separate MYSQL JConnector for linux?

170 byte By vineet_mita at 2007-11-27 4:51:06
HiWont the MYSQL Jconnector jar file that we use on windows work for linux too?Is there ny separate MYSQL Jconnector for linux?plz hepl

ImageIcon in Database

758 byte By bjbaa at 2007-11-27 4:51:13
Hi, I am trying to store an ImageIcon in a database:inserting the Icon works fine using this code:(rs is a ResultSet) rs.updateObject("PICTURE", new ImageIcon("D:/test.jpg")); rs.insertRow();when I try to retrieve the icon using:ImageIcon icon = ((ImageIcon) rs.getObject("PICTURE"));I get a ...

Jdbc connection fail with Mysql

10046 byte By patel_sandeep81a at 2007-11-27 4:51:32
Hi All, I am using my Sql 5.5 for database. While connecting using JDBC i am getting connection failed exception ....Please see blow code. and exception...Please help me to resolve this issue..... try {Class.forName("com.mysql.jdbc.Driver"); Connection con = ...

problem in getting Maximum value from column

326 byte By MeenaMahalingama at 2007-11-27 4:52:45
i have a table with 5 fields in it.i want to get field say accountno to be incremented each time when a new record is to be inserted by checking whether number is not duplicated. how to get max value in accountno column and incremented by 1 or 2 in MS-Access database....please help me!!!!Thanks ...

Unsupported VM Encoding error

486 byte By gulaba at 2007-11-27 4:53:09
I'm trying to access a database which has some data in chinese language. So when I try to connect to the database I get the following error:Unsupported VM Encoding MS936where MS936 is the code for chinese.I tried alot of things including installing some internationaliztion support version of ...

Cannot load JDBC driver class 'com.mysql.jdbc.Driver' problem

2357 byte By Zorana at 2007-11-27 4:54:31
I am trying to develop JSF - MySQL application with ...

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver...the same old pr

4612 byte By Nishant@nishanta at 2007-11-27 4:55:13
Hi,I am a new user in this forum..I have just installed tomcat and mysql and jdbc fresh on my new system..first of all here is what i have done...i have installed mysql integrated in xampp at c:\xampp\mysqli have installed my tomcat at C:\Programme\Apache Software Foundation\Tomcat 5.5i have ...

Problem in Creation of two Statement Obj

881 byte By amol_0008@rediffmail.coma at 2007-11-27 4:56:52
Hello firends,i have a problem regarding Creating two Statement objits not allowing me to do<%! Statement stmt1; Statement stmt1; Connection con; dbcon db;%><% db=new dbcon(); (its database connection class which m importing) try{con= db.getDbCon();(method of dbcon ...

Problem with entering data

1543 byte By ArcherKinga at 2007-11-27 4:57:10
I have a windows Xp system with Microsoft SQL Server 2005 setup and using java 1.6I'm using the JDBC-ODBC Bridge and also setup the DSN and that works fine.The following code worked fine a few days back but now every time I enter a row of data and if the data type of a variable is varchar or ...

Problem with retrieve ResultSet.getBytes("columnName");

204 byte By Java_persona at 2007-11-27 4:58:01
Hi....Can I specify the encoding with ResultSet.getBytes("columnName") method.If not then how can I specify the desired encoding while fetching the values from DB?Thanks

How to retrieve nVarchat data from Sql Server DB

153 byte By Java_persona at 2007-11-27 4:58:57
How can I retrieve data of NVARCHAR data type from Sql Server 2000.Do I have to user ResultSet.getCLOB() or ResultSet.getBLOB() ?thx

Loading Driver

550 byte By GloomyProgrammera at 2007-11-27 4:58:58
hi all,I have a problem....I have Oracle9i R2 db on my PC....Firstlywhich of the following do i use to load my driver..Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");OR Class.forName("oracle.jdbc.driver.OracleDriver");Secondly In the above code i assume "JdbcOdbcDriver" and "OracleDriver"...are ...

Connecting to remote PostGres DB

445 byte By swiftsofta at 2007-11-27 4:59:01
Hi,I want access a Postgres Database from a java program. The database is running on remote mahine. I have access to that Database. it can be accessed from computers within networkThe problem is the firewall doesnt allow TCP connections from outside network to specific port DB is running on.Can ...

a forum for c++

88 byte By EMEKAa at 2007-11-27 4:59:39
hi,please, a need a good site for c++ forum. Please, any help?Emeka

plz help me

1913 byte By farakha at 2007-11-27 4:59:41
[nobr]PreparedStatement ps=cnn.prepareStatement(query);ps.setString(1, coemail);rs=ps.executeQuery();if(rs.next()){r_id=rs.getInt(1);co_id=rs.getInt(2);if(!coemail.equals(rs.getString(3))){out.println("<br><br><br><center><font color=red size=3><b>Access ...

how to know exact query execution time.

178 byte By satish_bg@rediffmail.coma at 2007-11-27 4:59:42
Hi,I want to know what is exact query execution time which excludes network access, constructing results. Please suggest me.Thanks in advance,Satish.G

Profiling resultSet.getXXX methods

696 byte By bob000000a at 2007-11-27 5:00:52
Hi,I'm working on a JDBC performance impovement project. Researching JDBC best practices it's my understanding that you should avoid getObject behavior and use type specific methods (getInt, getFloat, etc) I'm finding that in some instances that performance is worst when I use the type ...

Where like clause

169 byte By bob000000a at 2007-11-27 5:00:54
I have sql that uses a like clause instead of == or in. The like values do NOT have wildcards associated with them. Do they perform as quickly as == or in claues?

ORM framework applicable if only using VIEWs and PROCEDUREs?

658 byte By rapthora at 2007-11-27 5:01:53
Hello community,I hope this forum is the right one to post my request.I wonder if Hibernate or any other "ORM framework" makes sense when using only VIEWs and STORED PROCEDURES. I want to avoid direct INSERT, UPDATE, .... - statements executed by the "ORM framework" to increase flexibility. I ...

Finally block and close methods

3620 byte By kensingtona at 2007-11-27 5:03:05
[nobr]In my Tomcat 4.1.27 container I am trying to get the finally block to work where it closes the MySQL database connection.Here is my attempt which will not compile:package packone;import java.io.*;import java.text.*;import java.util.*;import javax.servlet.*;import ...

Error..!!!! help....

423 byte By Pirate11a at 2007-11-27 5:04:15
i am new to java programming...I am using NetBeans IDE 5.0 and have been trying to connect to database through Derby...so far i am successful but i whenever i try to create a new database from "Tools -> Derby Database -> Create Database" i get this error..." An error occurred while ...

Issues with Weblogic connection pool creation

244 byte By mystic_mindsa at 2007-11-27 5:04:48
Hi,I need to create a Connection pool in weblogic to access a mdb file(MS Access) .Iam not able to see any precoded drivers in weblogic for accessing MS Access.Let me know if anyone has details on this.Thanks.

Problem with HQL UPDATE

1006 byte By swamy_suna at 2007-11-27 5:05:22
hi i have folwing HQL query for updating a table but it doesnt run would b great if somone can help urgent thanks session.createQuery("update BusRefAccessValues brav set brav.busRefAccessEndDate =:currentdate" +" where brav.id.busRefId =:busrefid" +" and brav.id.busRefAccessLabel='CLIENT UNIT ...

max db

308 byte By cutouta at 2007-11-27 5:06:02
hi am fresh in databases...can any one plz post a complete code of connecting to remotemax db from java desktop application...and if it needs any special configurations plz tell me about it?!!thx in advancecontact me at ...

Sql and excel

1214 byte By jjdahlheimera at 2007-11-27 5:07:46
Right now I use sql to get data from an excel spreadsheet sent to us from a vendor. Inside of this sheet there is 9 cells in a row that have pricing information and the column headings change because the column heading is the week the price is valid. So I use column numbers to select instead of ...

Connection Pooling How To ?

933 byte By Jasdeep.Singha at 2007-11-27 5:07:51
Hi All , i am developing a struts based web-application with JBoss 4.0.5 as Application Server and Oracle 10g Express edition . I am configuring my application for connection pooling . I have tried following methods : 1. Oracle Connection Pooling following thius link ...

Checking the existence of temp tables?

653 byte By jamesEstona at 2007-11-27 5:09:10
Hello All,I'm trying to come up with a way to check for the existence of two temp tables and if they are there, drop them. I tried this, but temp tables don't work the same with db metadata I think, so I get an exception trying to query the resultset:DatabaseMetaData dbm = ...

Problem with recycling connection pool

458 byte By ranjanbaisaka at 2007-11-27 5:09:31
Hi Group,I am using DBCP provided connection pool in my web applications. For each re-deployment of my web application, connection pools are not reused so connections are just increased. This forces me to restart my live application in every month. Is there any way, I can reuse connections in ...

JDBC and Unicode

378 byte By Java_persona at 2007-11-27 5:10:52
Hi ,I have a Unicode String String uni = " \u0627\u0633\u0644\u0627\u0645\u0020\u0622\u0628\u0627 ";This is Urdu Language Unicode string.I want to save it and retrieve it to display Urdu in JTextArea.I have tried numerious solutions but not yet successeded.What is the best solution to do ...

Downloading of file[SocketException]

5910 byte By Jhay_area at 2007-11-27 5:12:09
hi... im encountering an exception whenever i click the cancel button on downloading of file but when i click open the program runs good...here's the stackTrace[5/23/07 14:47:20:859 CST] 17dd17dd SystemErrR java.net.SocketException: Connection reset by peer: socket write error[5/23/07 ...

COUNT field incorrect or syntax error

666 byte By Java_persona at 2007-11-27 5:12:30
hi,PreparedStatement stmt = con.prepareStatement("Insert into uQuestions values(?,?)");stmt.setInt(1,2);//stmt.setString(2,s.trim());Reader rd=new StringReader(s.trim());stmt.setCharacterStream(2, rd );System.out.println( stmt.executeUpdate() );stmt.close();Resultjava.sql.SQLException: ...

doubt in return statement

310 byte By MeenaMahalingama at 2007-11-27 5:13:21
hai....i am using simple java file with MS-Access db...i want to know whether is it possible to return more than one value using return stmt?for example in bank database after user created his account ...it has to return his new account no and pin no...plz...help me...Thanks in ...

JDBC INSERT PROGRAM

410 byte By GloomyProgrammera at 2007-11-27 5:13:27
Hi All ,I am new to JDBC Programming ....can someone provide me ...a JDBC insert program in which i insert data through variables .......(i.e i do not know the data ....it is captured from user input ...and then place in the insert statement....like insert into emp values (var1,var2....etc ...

I have name of a savepoint, can i rollback to that savepoint?

444 byte By Legolas.wa at 2007-11-27 5:13:35
HiThank you for reading my postI have name of a savepoint in my method and connection which that savepoint belongs to.Now what i need it to rollback to that savepoint but problem is that Connection object rollback method does not accept savepoint name and it just accept savepoint Object to ...

invalid descriptor index error

1316 byte By MeenaMahalingama at 2007-11-27 5:13:53
hai... i am having this error..java.sql.SQLException:[Microsoft][ODBC Microsoft Access Driver]invalid descriptor index. I am doing RMI application..while i am trying to insert i got this error...here i paste my code....can anyone help me in finding out ...

SQL commands?

78 byte By Alex1989a at 2007-11-27 5:14:09
any1 know where i can find a page with all the sql commands on it? thnx

Can someone help me with this program?

1084 byte By bezzzza at 2007-11-27 5:14:31
Can someone make this program for me?Make a Java-webapplication containing a few webpages (html-files and servlets, but NO jsp's). With this application you can get bankdata from a database, for example:page 1: html-file: Welcome on the website, type your bankaccount and passwordpage 2: error ...

Problem with Insert in to SQL server

398 byte By MohantySRa at 2007-11-27 5:15:34
Hi everyone i need to insert data from csv file in to the SQL server .The problem is the data will be given as parameter to the store procedure which will insert data in to different table in database.So if there will be 10,000 records so should i execute the stored procedure 10,000 times or is ...

Problem with connectionPool configuration to Oracle

1290 byte By mmittaka at 2007-11-27 5:16:30
HiI am facing some problems with configuration of connectionPool with oracle.I am using J2EE app server 8.1.While configuring I am giving following details:Datasource Classname:oracle.jdbc.pool.OracleConnectionPoolDataSourceResource type: ...

javax.naming.NamingException: Tomcat 6.0 conn to Ora10g

3578 byte By swestenzweiga at 2007-11-27 5:18:09
I searched extensively to try and figure out where my error lies, but I am about stumped. I am trying to make a JDBC connection from a web service to an Oracle 10g database using Tomcat 6.0 enabled with Apache AXIS for SOAP implementation. Here is the relevant information:=== EDMSService.xml ...

Loading Access Database Values into a Form

885 byte By spencer.bowmana at 2007-11-27 5:22:09
Hi guys. I have successfully connected to an Access database and have now started a new project which aims to load these Access database attributes into Text box fields. Unfortunately I'm having a bit of trouble. I have a class called FormClass, of which the public FormClass constructor calls ...

PreparedStatement

508 byte By GloomyProgrammera at 2007-11-27 5:22:34
hi ,can anyone suggest me how to use the setDate method from Preparedstatement.....my req isPreparedStatement updateSales = connection.prepareStatement("Insert into emp1 (empno,ename,dob) values (?,?,?)");int n =7;updateSales.setInt(1,n);updateSales.setString(2, "TEST");Date d = 18/12/2000 ...

ClassCastException while inserting in oracle.sql.BLOB

1262 byte By Mary22a at 2007-11-27 5:22:47
Hi,I have to insert a blob data in to database . I wrote the code . I'm having a ClassCastException problem in the line oracle.sql.BLOB blob = oracle.sql.BLOB.createTemporary(st.getConnection(), false,oracle.sql.BLOB.DURATION_CALL); while trying to store a BLOB value I'm using Oracle 9i. ...