getting resultset from stored procedure

132 byte By jsudhaharan at 2007-9-26 1:48:43
Hello,I am using stored procedure.It returning me a result set.How can i get that result set from java program.

Problems with JConnect, Sybase SQL Anywhere 5.x

847 byte By sigoN at 2007-9-26 1:49:08
HiI use Sybase SQL Anywhere 5.x, Apache Server, Apache Jserver.(WINNT)I must to write servlet, which connects to Sybase database using JConnect.When database is on the same host as Apache server, and my servlet i run services:Open Server Gateway (dbos50.exe <server_name>), where ...

Problems with ResultSet

294 byte By federica at 2007-9-26 1:50:16
I'm working with Application Server WebLogic 5.1. In my Servlet or JSP why can't I invoke the ResultSet methods getRow, afterLast, beforeFirst when the method next works?My error message is:Servlet failed with Exception java.lang.AbstractMethodError

java.sql.SQLException: Invalid handle

1270 byte By ngh0001 at 2007-9-26 1:50:33
*********** PLEASE HELP? **************88888888 Why the "Invalid handle? 8888888888 private synchronized void remove_Q_firstElement(StringURLRmve){try{statement = connection.createStatement();if(!Q_ToSearch_isEmpty()) {String query = "DELETE FROM QToBSearch WHERE URLToBSearch = '" +URLRmve+"' ...

exporting and importing word doc

310 byte By reddy94 at 2007-9-26 1:50:45
Hai i want to export and import the ms-word document to Sql server.it is like sending attachment and downloading attachment with e-mail.please help me how can i do this.if u have example please give me.what data type i have to take for that coloumn.thank u in advance. ...

Does anybody know how to bind multiple values to IN qualifier

214 byte By madhavjs at 2007-9-26 1:51:28
I was trying to use preparedstatement like'select * from tbale where column in (?)'ps.setString(1, 'value1','value2');It doesn't reurn any rows.ThanksSrinivas

Getting sql for Callable or Prepared Statements

178 byte By dmbdmb at 2007-9-26 1:52:11
If I have a PreparedStatement or CallableStatement, and I want to get the sql that was specified when I created the statement from the connection, how do I get it?

connecting to MS-Access 97 database

647 byte By akkiraju_lk at 2007-9-26 1:52:40
Iam working on Windows 95 and trying to connect to MS-Access 97 database using the following code:String url = "jdbc:odbc:MS Access 97Database;DBQ=c:\\utuGatewayCtl\\HEM0000101.MDB";Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");Connection con = DriverManager.getConnection(url);and Iam getting ...

ODBC bridge ->MSSQL ->prepared Like statements

643 byte By ReynirH at 2007-9-26 1:52:50
Hi, are any known problems when using the JDBC/ODBC bridge, with MS_SQL and then using PreparedStatements with LIKE. We where going to do this, we had something like : PreparedStatement pstmt = conn.prepareStatement("Select * from Employees where LastName like ? ");pstmt.setString(1, 'A%');rs ...

How to "CREATE VIEW" by using JDBC? Thanks.

57 byte By jw2001 at 2007-9-26 1:52:51
How to "CREATE VIEW" by using JDBC? Thanks.

ROWID equvaliant for MS SQL server

835 byte By ReynirH at 2007-9-26 1:53:23
I have a small problem.I have been using the rowID in oracle to identify rows that do not have a primary key. I know ROWID is an oracle specific datatype, but is there anything in the JDBC framework that provides a similar functionality. Obviously the ResultSet objects have a pointer into rows ...

Standalone database app?

625 byte By ajpaxson at 2007-9-26 1:53:33
Hey Everyone!!Is there anything in Java's API, that I can use to develop a standalone database? I can connect to MSAccess and MySQL via JDBC.... but I want to develop a standalone application that has it's own database, rather than making sure every system this is installed on has some ...

Need help - How to make Result Set no forward_only

286 byte By sigoN at 2007-9-26 1:55:24
Hi,By creating Result Set I want to go forward and backward on ResultSet(I want use methods absolute(), first(), last() and s.w.)But I get an ErrorJZ0BT: The first() method is not supported for ResultSets of type TYPE_FORWARD_ONLY.Thanks

Windows 2k from Windows NT

293 byte By shailis at 2007-9-26 1:55:41
Hi, I have my application running on Win NT. This application connects to MS Access 2000 using JDBC-ODBC. We need to shift to Windows 2000. Will it affect anything? Do I need to take any care or make changes to code/drivers etc. after OS change?thanks,Shaili

Wich SQL am I executing?

250 byte By Siggeman at 2007-9-26 1:56:08
Hi.In my application I would like to debug the SQL's sent to my DBMS.Is there any way to see the SQL in a PreparedStatement AFTER I dynamic have set all values?, except go through the DBMS debugging?/Andreas

How can I get the table name of my column?

388 byte By gaetan06 at 2007-9-26 1:56:29
I'm using the JDK 1.3 trying to get a table name of a column from a result set. Regardless of what driver I'm using (ODBC Bridge/Oracle) I always get a null returned. Does this method work? If not, if I'm doing an SQL query that uses more than 1 table and each table has a return of the same ...

ResultSet is closed, Exception

252 byte By khiz_eng at 2007-9-26 1:57:12
Hi to everyone,I am encountering with an exception "ResultSet is closed", as i was inserting fields into database with one of the field as null value.Can anybody helps me out with this.Thanx in advance.khiz_eng

Procedures inside Oracle Packages

266 byte By abhishes at 2007-9-26 1:57:50
Hello All,Can I execute an procedure defined inside an Oracle package using jdbc?Are the procedures defined inside Oracle packages are same as stored procedures ?Any help would be grately appreciated.regards,Abhishek.

MSExcel reader/writer tool in java

450 byte By umeshnair at 2007-9-26 1:58:12
Hi,My requirement is to read data from an Excel file, play around with the extracted data, and write the result back into another Excel file. I don't want to mess around with BIFF8 formats and stuff like that.Is there any readymade tool available (i mean an API set) which provides me with the ...

preparedstatement return null

478 byte By brainofjt at 2007-9-26 1:58:56
Hi,I am having some problem with the result that is returned after executing a preparedstatement. The preparedstatement works fine as long as there is no null value in the result but if there is a null column once, all subsequent queries using the same preparedstatement will return a null for ...

inserting a record into Access database

1337 byte By decaynan at 2007-9-26 1:59:00
Hi guys i am having problem with the insertion of a record in to a Access database!!!!It is not given any exceptions or errors but simply does not insert it!!!Here is my code!!import java.sql.*;class access{public static void main(String a[]){ // Set default values for the command line ...

Connection object in other classes

535 byte By javastus at 2007-9-26 1:59:05
i am writing a JDBC application. There will only be one user for this application.I want to know whether i am doing it the right way.Main program sets the connection to database and provides a static method getDBConnection() which returns a Connection object .All other programs have a public ...

Where can I find the wrapper.properties file?

76 byte By dUb at 2007-9-26 2:01:42
Does anyone know where I can find the wrapper.properties file?

some problem in JDBC operation

1052 byte By raghav21 at 2007-9-26 2:01:46
hi, i have this problem i am new to JDBC and i wrote a sample program to try out , when i complied the program it compiled fine but when i ran the program java progname i got a class not defined error , below is my sample code please can anybody tell me where the problem is import ...

Problem with Connection to SQL Server via Servlet (in iPlanet 6 App Server)

2474 byte By srmenon at 2007-9-26 2:02:17
Hi , I am using the iPlanet ApplicationServer 6.0 SP2 for development & testing of an internet application.I am facing a problem when I am trying to connect to MS SQL SERVER via the native jdbcodbc driver (obdc32.dll). The error is something like this : [26/Jul/2001 11:50:35:7] warning: ...

java.sql.SQLException: Invalid argument(s) in call: setRowBufferAt

370 byte By talon74 at 2007-9-26 2:02:35
I have created a custom tag that does inserts. While it works on most every other table that I have dealt with, I keep getting this error for a particular table. I have created another table on an entirely different database, but get the same error.Is anyone familiar with this error? I'm ...

No suitable driver - error

909 byte By s_rajan_m at 2007-9-26 2:03:04
Hello,I'm getting the error "No suitable driver" when I connect to Oracle 8.06 database with Oracle JDBC 8.1.7 driver from Java client program on Windows' NT. i use the commands Class.forName ("oracle.jdbc.driver.OracleDriver");DriverManager.registerDriver (new ...

Setting up MySql Driver for J2SDKEE

391 byte By rajani_s at 2007-9-26 2:04:06
Hi allRight now I am developing a web application in J2SDKEE1.2.1 using Cloudscape databse.But my project specs says that I have to use MySql for this application.I need to know what steps I have to take to replace Cloudscape with MySql.Please help.Thanks RajaniP.S I am using CMP to communicate ...

Problem about MYSQL

495 byte By jw2001 at 2007-9-26 2:04:12
I am using MySQL. After I manually logged in, I mean, using "mysql -u username -p passward",I tried to CREATE VIEW by using the following command:mysql> CREATE VIEW csclass AS SELECT * FROM CSGRADE10;Here, CSGRADE10 is the table already been created.The error message is:ERROR 1064: You have ...

JDBC SLOW THAN MS SOLUTION?

578 byte By hcriver at 2007-9-26 2:04:57
hi,im a newer of java program...and write out my first database programm by using jdbc. everything runs fine except it's much slow than those program i'v wroted withVB or VC. im trying to trace it and found that the problem is that every time the connection with the database(SQL Server) spend ...

does free tds work on windows

82 byte By parul_patidar at 2007-9-26 2:05:17
someone please tell me whether freetds driver works on win 98 or not

$$$$$$How many is enough?$$$$$

1241 byte By ngh0001 at 2007-9-26 2:05:22
Hello all,Now that I've got your attention with the $$$ how about we get down to the fun part :-) Why is it that I'm getting the following exception? More importantly (I think)is it because I've open and Not properllly close my n number of ResultSet objects?Any ...

connecting mssql server at webserver from client

180 byte By parul_patidar at 2007-9-26 2:05:43
hi has someone ever connected MS sql server installed at webserver from client application using JdbcOdbcDriverplease tell me if it is possible or not.

Sorting data in MS-Access using java.

243 byte By khiz_eng at 2007-9-26 2:05:45
Hi everyone, Can anybody assisst me, how i can sort my table (which is in MS-Access) in ascending order through my java application.Please provide me as soon as possible.Thanx in advance.Khiz_eng

Access MS SQL 7.0 via JDBC

480 byte By slipchenko_serg at 2007-9-26 2:06:30
I am using following code to connect to the MS SQL database:Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");connection = DriverManager.getConnection("Provider=SQLOLEDB.1;" + "Integrated Security=SSPI;" + "Persist Security Info=False;" + "Initial Catalog=Northwind;" + "Data ...

Problem Inserting into Sybase!!! URGENT!!!

953 byte By jkanter17 at 2007-9-26 2:07:16
I wrote code to insert data into a database using servlets and jdbc. The code works fine but I am having problems with certain users. I am getting the following error:com.sybase.jdbc2.jdbc.SybSQLException: rnd_ref_tbl not found. Specify owner.objectname or use sp_help to check whether the ...

GUYS!! Is there any way to write BLOB's > 4K using Oracle thin driver

406 byte By stefig at 2007-9-26 2:08:01
I've been trying for 3 days to do that but nothing worked ...Not setBinaryStream(x, new ByteArrayInputStream(anArrayWith10KBytes), anArrayWith10KBytes);nor setBytes(x, myArray), or setObject(x, myArray).Is there any way to store Blobs to Oracle 8.1.6 using the thin driver ?Please help ... ...

Retrieving a Table in a java program

563 byte By gnilam at 2007-9-26 2:08:32
Hi, I have a stored procedure in oracle 8 that has a Table as an out parameter. the table is declared as type RulesArray is table of alert_rec; The procedure declaration is like this PROCEDURE using_array (rule_array out RulesArray);How can i retrieve this in my java program. I am using jdbc ...

Visual age problem - importing packages

617 byte By s_rajan_m at 2007-9-26 2:08:49
Hello,I have created a Java client NT application on Visual Age which interacts with Oracle database thru JDBC driver.when i give import oracle.jdbc.driver.*;the visual age editor is not able to find the above package, whereas when i export the same application and execute it on DOS environment ...

connection to oracle in weblogic6.0

318 byte By paruchurink at 2007-9-26 2:09:33
hi allcan any body give me steps to create a connection pool in weblogic6.0. and Datasource. i have created and trying to connecting but i am getting error unable to resole "mypool" it is a connectin pool name.can any body give me the steps to do.thanksparuchuri ...

Usage of logwriter in JDBC ?

258 byte By raghav21 at 2007-9-26 2:10:09
hi, does anybody know how to use the setLogWriter(PrintWriter ) and getLogWriter() which are static methods in DriverManager class .These methods can be used to create log files of ur database operationsthanksraghav

JDBC connection pukes (please advise)

6356 byte By saeedf at 2007-9-26 2:10:39
Hello everyone, I'm new to programming java, but have done developement in C/perl. I'm trying to access this Oracle8i db on the network. The DB is on Irix 6.1 and i'm running win2K, the tnsnames.ora is already set and the db is refered to as mmx. We are running oracle 8.1.6 on it. I went to ...

here is my code and error .please anyone can tell where i did mistaken

6525 byte By plalitha at 2007-9-26 2:11:10
My code is: <%@ page info="Company Master" import="java.sql.* " session="true" %> <html> <head> <script language="javascript"> function f1() { var x=document.company.code.value.toUpperCase(); if(x!=null) document.company.code.value=x; } </script> </head> ...

More Records

261 byte By asgherali at 2007-9-26 2:12:24
If I retrieve a lot of records from database. I want to Display those records on multiple html files. I Mean show maximum 25 records per page. Tell me how to distribute among several pages.Thanx in AdvanceASgherasgher@lww.org

can i store the cursor in JDBC.

1353 byte By satishpatel83 at 2007-9-26 2:13:02
hi,freinds,below given code gives me some problems.i have 3 table namely input, reaction, prss. for (int i=0; i<10 ; i++){query="select * from input"; ResultSet input=st.executeQuery(query);input.next();m=input.getDouble(1);b=input.getDouble(2);query="select * from reaction"; ResultSet ...

Limit to the number of JDBC connection in a process

651 byte By jawatson at 2007-9-26 2:13:27
Has anyone encountered a limit to the number of jdbc connections that can be pooled within one process. We are using Java 12205a, Weblogic 5.1sp9, and Oracle's 8.1.6.0 OCI drivers for our application on a Solaris 7 box. We have noticed that our application becomes unstable and in some cases ...

(Class COM.ibm.db2.jdbc.app.DB2Exception ) [IBM][CLI Driver]SQL1032N

510 byte By vali_p at 2007-9-26 2:14:23
Hello,I am running a Java program which handles the UDB connections on SunOs5.6. I am getting the following exceptions.Exception : (Class COM.ibm.db2.jdbc.app.DB2Exception ) [IBM][CLI Driver]SQL1032N No start database manager commandwas issued. SQLSTATE=57019 First 10 Connection are sucessfully ...

urgenttransactions wait till another transaction on same table complete

457 byte By venkyp02 at 2007-9-26 2:14:38
I wanted to know how to make the transactions wait till another transaction completes on the same row of the table.This is happeneing in primarykey generation. i try to retrieve the value from the same table, it is giving Locked time out exception, if more than one request is being sent to ...

sun Jdbc and j++, Help!!!

483 byte By adilevy at 2007-9-26 2:14:52
Hello,I'm trying to use the Sun Jdbc-Odbc bridge with MS J++.if I import the rt.jar file to the classpath of my project in j++, as I run or debug the project, I get the following error message: "Unable to locate system class: java/lang/String"How do I use the sun Jdbc-Odbc bridge, on the MS - ...

Invalid Cursor State while triying to execute executeQuery()

1048 byte By gustavov at 2007-9-26 2:15:21
Hi all! I need some help down here, since I don't have any idea of what is happening.I'm trying to execute a query (one that is generated dinamically and that have nested SELECT into the WHERE clause). I'm getting the Invalid Cursor State message from the ODBC driver. That happens when teh ...