The error: java.lang.AbstractMethodError

213 byte By webertjy at 2007-9-26 2:44:26
When I use some method of the class ResulSet,such as last(),isLast(),The error java.lang.AbstractMethodError occurs. I am puzzled about it .who can tell me what is wrong. Thanks a lot.

Urgent-Help

178 byte By smitaunni at 2007-9-26 2:45:09
I have a data of type "ntext" in my database...How can I retrieve it using the resultset...I am using sql server 2000...I am programming in jsp

How to connect to Access data base with out using data source name?

333 byte By jagsred at 2007-9-26 2:45:15
At present I am using JDBC - ODBC bridge driver inorder to connect to Access database by creating a system DSN. But I want to get access directly to the same database without help of any DSN. I want direct connection to the Access data base.I'll be very thankful to you if any solution or ...

A driver for sequel and oracle

371 byte By smitaunni at 2007-9-26 2:47:11
I am using currently the jdbc-odbc bridge...which does not seem to support a lot of things...I cannot get a ntext value from the resultSet properly...Can this be solved by changing my driver...If yes...do suggest be a best one which supports both sequel and oracle....Also suggest me a website ...

A driver for sequel and oracle

371 byte By smitaunni at 2007-9-26 2:47:12
I am using currently the jdbc-odbc bridge...which does not seem to support a lot of things...I cannot get a ntext value from the resultSet properly...Can this be solved by changing my driver...If yes...do suggest be a best one which supports both sequel and oracle....Also suggest me a website ...

insert, get from memo using jdbc-odbc bridge with msacess

781 byte By vy_ho at 2007-9-26 2:49:07
I hope posting this message would help someone like me.Problem: read and write to msaccess with jdbc-odbc and memo field.- read (using getString()): empty memo field will cause exception- Write: more than 255 characters will cause exception in prepareStatementFirst thanks to:Guest - The one ...

JDBC Drivers and Tomcat

349 byte By g_monk at 2007-9-26 2:49:49
When I try to execute my servlet I receive a "java.lang.NullPointerException" in the web page and "No suitable driver found" in the Tomcat console. I have JConnect installed and it works when I execute a class in NetBeans. What do I need to do to get Tomcat to find the driver for Sybase?Thanks ...

java.sql.SQLException-General Error means what

250 byte By plalitha at 2007-9-26 2:50:06
When i insert data and in mean while i update in another table according to this insert in jsp then i am getting this error.Acutally what is meant by that error.Please if anyone know that ,send me the response soon.Thanks.

Error On Connect But Not JSP

1136 byte By sspurcell at 2007-9-26 2:50:09
Hello,I have an oracle DB, in which I can connect to with the following code<% Class.forName("oracle.jdbc.driver.OracleDriver"); java.sql.Connection db = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:mbank","mediabank","vbank");%>This has worked and works ...

get all DSN names

395 byte By alex_registry at 2007-9-26 2:50:16
Hello Friends,I'm working on a Java Based DataBased Administrator which is Backend Independant. Now, I want to switch between different DSNs during Runtime and so I want to display a Dialog which gives all the Available DSN from the Current Operating System (Windows / Unix. Note: My Project is ...

assigning ResultSet.getDate()

998 byte By tully4 at 2007-9-26 2:50:38
(Posted this query to Programming forum by mistake earlier, so copying it to this forum. Apologies, I'm a newbie here...)I am using ResultSet.getDate() to get a date field from MSSQL Server database. What variable type do I best assign the returned value to? getDate() returns a java.sql.Date ...

No Suitable Driver Error

1396 byte By g_monk at 2007-9-26 2:51:01
I am receiving "No suitable driver" when I try to execute the method getConnect in my servlet. Below is the connection code. I'm using Sybases JConnect 5.5.public void init(ServletConfig config) throws ServletException {super.init(config);System.out.println("Start of init");Properties sysProps ...

Fetch out of sequence ERROR - urgent

1182 byte By sbpyari at 2007-9-26 2:51:26
Hi guys .. If i try to run the program i am getting an error message as java.sql.SQLException: ORA-01002: fetch out of sequence at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)will u pl help me how to solve this import java.sql.*;import oracle.sql.*;import ...

Detect database shutdown

1245 byte By TSchwarz at 2007-9-26 2:52:08
Hai!I found a serious problem in the database connection handling. I can't find any way to detect if the database server has shut down.In detail, i have a java.sql.Connection object that was created when the db server was running. If the db server shuts down, there is no way to find out that ...

Strange SQL statement

1365 byte By DumbInJava at 2007-9-26 2:53:07
Hi, I can't get the result of this query when I run my application. However, I was able to get the result when I queried it using the SQL Server Query Analyser. Here is part of my code which executes the query.String querystring = "SELECT DISTINCT p.proID, p.proType, p.proName,"+"p.proDesc, ...

"table already exists" error message....

529 byte By kkkkaren at 2007-9-26 2:53:41
Hi Please could someone explain something basic to me...I have just started creating a table and inserting values, but when I run the program I get a message saying my table already exists (as it does once it's been complied and run once) , but I can't find any information anywhere that says ...

UrgentJDBC driver

422 byte By smitaunni at 2007-9-26 2:54:19
I did download freetds driver.....it was a latest zip file....I am not sure where I have to extract the driver files so that I can use them...I am using JRUn and my database is MS SQL server 2000...I have extracted it in my jrun(root)/servers/libC:/ALLAIRE/JRUN/SERVERS/LIB But still it gives ...

java.sql.SQLException: Before start of result set

217 byte By webertjy at 2007-9-26 2:55:29
I use resin-cmp-1.0.0,mysql,mm.mysql.jdbc2.0, I met the error "java.sql.SQLException: Before start of result set". I am puzzled. who can tell me what is wrong. Any help will be appreciated.

M$-Access non-odbc driver

126 byte By ylansegal at 2007-9-26 2:55:31
Does anybody know of a good, non-odbc, driver for M$- access?Thanks a lot for the help.Ylan

java.sql.SQLException: Bigger type length than Maximum

138 byte By vbattula at 2007-9-26 2:56:18
Hi guys,Is there any fix for the JDBC error.This is oracle jdbs errorora-17412.Thanks in advance

error trying to access DB?

1467 byte By legeriun at 2007-9-26 2:57:00
Any ideas what's causing this? *** SQLException caught ***SQLState: 08001Message: No suitable driverVendor: 0java.sql.SQLException: No suitable driver at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.sql.SQLException.(CompiledCode) at ...

RmiJdbc

823 byte By robli73 at 2007-9-26 2:58:28
HiI encountered a problem when i was trying to make RmiJdbc access a MS Access DB in a remote machine.I got an warning message like this:sun.jdbc.odbc.JdbcOdbcDriver registered in DriverManagerBinding RmiJdbcServer...WARNING: java.rmi.server.hostname property can't be read (access denied)If ...

Insert record into Microsoft Access

1317 byte By daweiguan at 2007-9-26 2:58:33
Hi folks:I followed The JAVA TM Tutorial and used JDBC-ODBC bridge creating a database in Microsoft Access, it worked . NAMEVARCHAR(32)(PRIMARYKEY),PID INTEGER PRICEFLOATSALESINTEGERTOTALINTEGER The following code is to insert the record into Table5. It has been well compiled and executed with ...

I want to insert in one table and update in another

621 byte By plalitha at 2007-9-26 2:58:40
Hi,I have a Master table with some details and i have another table which is Products finished one.So my problem is i want to insert the daily production details in Products finished table and then i want to update the quantity which is in Master table and that value should be the remaining ...

java applet works on command line but not in browser...

1946 byte By BigDaddyG at 2007-9-26 2:58:41
Hi,Im pretty new at java, and im trying to create an applet that connects to a database on a remote machine. So far, I have been able to connect to the database if i invoke the appletviewer from the command line like this:C:\java>appletviewer -J-Djava.security.policy=DbaApplPol.txt ...

connecting to sql server via ip/machine name?

107 byte By penanguy at 2007-9-26 2:58:47
How do I connecting to sql server via ip/machine name instead DSN?Thanks for any help.

Connect access using JDBC

500 byte By albantsui at 2007-9-26 3:02:32
HiI need to write a little server program to pass in SQL statement sent from the client and perform the statement and return the result to the client. I want to server to be able to support more than one access at a time so I will be using thread. It is where I am stuck because am I allowed to ...

validating string between jdbc and textfield

2653 byte By megamatrix at 2007-9-26 3:02:50
Hi guys,I am having a problem with JDBC. I am posting the app here. The problem is, I couldnt compare the testfield text and the database string. Am i doing something wrong or is there any other way?******************************************import java.awt.*;import java.awt.event.*;import ...

Help with JDBC connecting oracle

621 byte By fredwang4 at 2007-9-26 3:03:25
Hi,I am relatively new to Java. I installed orace 8i server personal edition and have jdk1.3. I tried "Class.forName( oracle.jdbc.driver.OracleDriver);"but keep gettingjava.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriverat oraTest.oraTest.main(oraTest.java:40) and if I want to use ...

jdbc:BatchUpdate

484 byte By rahulman at 2007-9-26 3:03:33
hi,I am writing a java program to read records from a table and write it to another. Each record I read, gets added to a batch. After the whole table is read, I execute the executebatch method. When I run this program, I get an error when it encounters the lind:The database is SQL SERVER and ...

How to read a DMBS on Linux? It works on NT!

402 byte By ctellez69 at 2007-9-26 3:03:37
Hi!I developed a servlet on a Win NT plataform accesing a Microsoft Access Database. It worked fine, but now I have to migrate to a Linux environment. The problem is that I don't know how to make the "connection" to the database, I mean, on NT I can go to Control Panel/ODBC Sources and define ...

Is mysql is a freeware

308 byte By amnonm at 2007-9-26 3:04:01
I want to use mysql in my comercial program.The program is written with swing.I download the mysql files last month from there site,but when I entered again today to get the source files for my use I saw that it's not so free as everybody said.Am I right or wrong ? ...

How do I get the Parameters of a Stored Procedure from my Java Code?

171 byte By 6tr6tr at 2007-9-26 3:04:15
I want to get the parameters in my Java code. How do I do this with Jdbc?In ADO it was: myCmd.Parameters.Refresh();Any idea what it is in Jdbc?

Max PreparedStatement number opened on a Connection

255 byte By Joll at 2007-9-26 3:05:40
Hi, I would like to know if there is a limit on the number of PreparedStatement that can be opened and processed on a single Connection.If this limits exist does it depend on the jdbc driver used and how can we know it ?

JDBC 2.0 Connection Pooling Implementation

387 byte By kttan at 2007-9-26 3:05:43
I need your help in JDBC 2.0 Connection Pooling.Can anyone show me the samples that implements the following two interfaces?- javax.sql.PooledConnection, and- javax.sql.ConnectionPoolDataSourceI have searched a few books but couldn't find one that follows these two interfaces exactly.Thanks ...

Get Record count and text of PreparedStatement

350 byte By dewangs at 2007-9-26 3:06:08
Hi,Is it possible to get a count of the records returned in a ResultSet?Also, is it possible to get the text of a query(PreparedStatement). I am using a PreparedStatement, and want to know what the actual query looks like, with the parameters. i.e. Are the parameters being set correctly or ...

Can't insert data with JDBC

1759 byte By xiekevin at 2007-9-26 3:06:20
Hi,Below is my code to insert data to a MS access database using JDBC. I can compile it but there is a run time error. Can anybody out there explain what is the cause of it.My environment is JDK1.3.02, windows 2000 profession.Thanks a lot.Kevin===================================D:\Java>type ...

How to connect MS SQL Server

180 byte By dinesh_singhal at 2007-9-26 3:07:12
Hi,I am very new to java programming.Can anyone help me, How to connect with MS SQl Server using java.Please send me the codes also.Thanks

How to load a properties file?

928 byte By yurkom at 2007-9-26 3:08:30
Hello Everyone,We are experiencing difficulties when trying to load a properties file from a directory other then the one where the servlet is located. We are using the following code for this purpose:private final String PROP_FILE_NAME = "my.properties";......Properties props = new ...

Pls help me out(unpredictable behaviour of DSN)

821 byte By dheerajkumar at 2007-9-26 3:08:53
hi all i am dheeraj and working on the JSp pages.i am facing a error while connecting the Jsp application to the database(SQL SERVER).well i am very new to SQL SERVER ..and have worked a lot on oracle .the problem is that when i connect to the database through the JSP page using a bean then it ...

Invalid Path in JDK1.3.1&JDBC-ODBC Connection on Windows NT 4

1626 byte By BigOcean at 2007-9-26 3:09:10
Hi, Please help me in solving the problem of Invalid Path in JDK1.3.1&JDBC-ODBC Connection on Windows NT 4, when the following code was run:import java.sql.*;public class CreateCoffees {public static void main(String args[]) {String url = "jdbc:odbc:Driver={Microsoft Access Driver ...

how to use PreparedStatement update...

607 byte By LuckyLeo at 2007-9-26 3:09:23
Hi all,I am tried to use PreparedStatement update database,the basic Syntax is://PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?");//it works OkWhile i tring use the Syntax// PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES SET ? = ? ...

JDBC Driver for MySQL

496 byte By pengyl at 2007-9-26 3:09:27
I am going to use MySQL in my web application, so I need to get JABC driver, I download a JDBC driver which is a mm.mysql .jar, what should i do to it?do I need unpack it, or I just need to put it under some folder, what folder?if i need to unpack it, what should I use for .jar file? i can only ...

VECTORS: How to add date objects to them?

5014 byte By ham17151 at 2007-9-26 3:11:53
Hello Everyone. I'm trying to build a JTable from 2 Vectors (e.g. constructor MyTable(Vector(column names), Vector (row data)) that will contain values obtained from a query through JDBC-ODBC bridge from an Access db. I have a book that shows an example on how to add strings, integer, and ...

BIGINT vs. INT in MySQL/JDBC

417 byte By asheresque at 2007-9-26 3:12:05
I am running a MySQL backend to a JSP service using JDBC, and the third-party codebase I am using is changing all INT primary key definitions to BIGINT. I am wondering if I have any cause for concern about performance and efficiency due to this change. This is a small-sized installation with ...

Connecting on Oracle database, using Unix authentification

705 byte By oliver_fr at 2007-9-26 3:13:31
I want to use java programs for batch.A UNIX shell lauch my java programs who connect on a Oracle database.But i don't want to keep the user/password in my java programs.1) Is it possible to connect on a database (Oracle) throw the JDBC thin client, using the Unix authentification ? (another ...

Does ResultSet remains connected ?

243 byte By Joll at 2007-9-26 3:13:45
I don't really understand how ResultSet are implemented :When I got a ResultSet, can I browse the whole ResultSet after the connection is closed ? Or does the ResultSet need the connection to retrieve data from database ?

How best to approach nested queries?

508 byte By jjloop at 2007-9-26 3:13:56
Hi,Could someone recommend the best way of dealing with complex sql queries, I have played around with making it one long sql string, although this is returning a value twice which only appears once.String query = "select T1.Subject, T2.Object from Test6 T1 join Test6 T2 where T1.Subject = ...

why this SQL statement is wrong?

667 byte By LuckyLeo at 2007-9-26 3:14:09
When I trying update my database using following statement:String query = "UPDATE Flights" +"SET AircraftType ='" + inputPanel.type.getText() +"', EnterPoint = '" + inputPanel.point.getText() +"',GroundSpeed = " + Integer.parseInt(inputPanel.speed.getText()) +",Altitude =" + ...

Updating Rows Programmatically (JDBC 2.0)

782 byte By npena at 2007-9-26 3:14:28
Hi,I am trying to run the Coffee Sample from the JDBC tutorial, with a SQL Server.All the code supplied by sun is working perfectly, but just updating the COFFEE table in the programmatically way it doesnt work perfectly.The code I am using is simple:(...)ResultSet uprs = ...