Multiple transactions

755 byte By Regulator1 at 2007-9-26 9:31:37
Hey ppl,I have a major problem with transactions. Im doing a DBMS with my application connecting to MS Access2000.The problem ive got is that i cant execute more than one transaction. For example, if my gui has 2 buttons, and both execute a transcation each when pressed. If the first button is ...

Excel

645 byte By uiranejeb at 2007-9-26 9:31:57
I need to connect to an excel file with a DSN-LESS connection, something like this:"jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=C:\..."The error message that I get is "DATA SOURCE NAME TOO LONG".I read in documentation and I found that this error is happen because the setting of ...

Inserting strings into varchars (MSSQL 7)

742 byte By dtreves at 2007-9-26 9:32:03
Hi,I am using JDK 1.4 on win2000, and I am updating an MS sql 7 server via JDBC (JdbcOdbcDriver that is shipped with 1.4 version).The problem I encounter (with no reasonable reason) is that even though I insert strings that are shorter than the max length of the field, in the table I see them ...

Do I need Oracle client to connect via ODBC ?

380 byte By vvr_prasad at 2007-9-26 9:32:55
I have to connect to Oracle 8i using ODBC. Question: Do I need Oracle client installation on my machine if I want to connect to the database via ODBC. OR Have you tried any ODBC to connect to Oracle which can work without an Oracle Client installation ( no tnsnames.ora). This would help me. ...

Help on Database Convertion from Access to Oracle

510 byte By mike182 at 2007-9-26 9:33:48
I am doing a research programming project that convert a database file to another database format(for ex: MS Access type to Oracle).Can anybody tell me how can i do that? For now, i am looking at the JDBC 2.0 API to get the database metadata from databases. That's should work fine. One problem ...

updating database

375 byte By r_rrao at 2007-9-26 9:34:57
String update = "INSERT INTO Test_Table (Html) VALUES (updatestring)";I am using these query in a program in which i am retreiving some data modifying it and inserting back into the database. updatestring is a variable which contains the modified string to be inserted back into the database. ...

updating database

413 byte By r_rrao at 2007-9-26 9:35:00
String update = "INSERT INTO Test_Table (Html) VALUES (updatestring)";I am using trying to write a query in a program, in which i am retreiving some data modifying it and inserting back into the database. updatestring is a variable which contains the modified string to be inserted back into the ...

Connecting to SQL Server 7.0

272 byte By lv1076 at 2007-9-26 9:35:40
I want to connect to SQL Server 7.0 through Java. What is the JDBC Driver available for SQL Server? I can connect by creating a DSN in my machine, but I want to use the JDBC connectivity. Where can I find the documentation for the connectivity to SQL Server?

free JDBC drivers?

131 byte By wazilian at 2007-9-26 9:38:03
are there any free JDBC drivers out there? if so, where and are they stable with fast connections. thanx in advance.

Working with two RecordSets

155 byte By shadowcat1 at 2007-9-26 9:38:25
Is it possible to work with two recordsets in one method?If so, I havnt been able to figure out how.Any Suggestions?Stef

oci8 problem

398 byte By ori.bakal at 2007-9-26 9:38:32
I am trying to connect to the database throw oci8with the jsdkee1.3 and I get the next error ERROR in serviceBySession java.security.AccessControlException: access denied(java.lang.runtimePermission loadLibrary.ocijdbc8)by the way I have no problem with thin driver only with oci8.does anyone ...

Linux, PostgreSQL JDBC

499 byte By w_bryer at 2007-9-26 9:38:39
New to JDBCI am trying to connect to PostgreSQL DB using JDBC and the driver supplied with Red Hat Distribution. I view env variables and see that the driver is in the classpath(CLASSPATH=/usr/lib/pgsql/jdbc7.0-1.2.jar).example of error:>javac DBConnect.Java>java DBConnectException in ...

Obscure Access/Date problem

1453 byte By kefka at 2007-9-26 9:40:57
Hi,I'm not even sure if this problem is Java related, butif I anyone can help me I would really appreciate it.I'm designing a JSP interface to an Access database,which stores progress reports and their information.When a user submits a report, there is a field in thetable which is of type ...

single quote ' in a string

479 byte By manohar2 at 2007-9-26 9:41:00
Hi i many must be having this problem while inserting a string with a single quote in it.E.g "Didn't".The solution i came across was to write a code to replace that single quote with two quote...ie. "Didn''t" .But I am wondering that JDBC doesn't have any such statement or methods which ...

sql server connectivity

138 byte By imrnasim at 2007-9-26 9:42:56
hi allcan anyone suggest me with the code to make connectivity of our JDBC driver with sql server...thanks in advance

JDBC connection using Merant driver

798 byte By smitaunni at 2007-9-26 9:43:08
I have downloaded the evaluation copy of Merant MS SQL driver.I have downloaded to a directory in my c: drive and unjarred the files.I have included the mssequel.jar file in my JDk 1.3 lib.I am using Jrun a.d MS SQL 2000.Now when I am trying my code Connection ...

pull info from a drop db

108 byte By papercup1 at 2007-9-26 9:43:15
I am trying to learn quickly and want to write a tag to pull info from a DB to a page.?

Exception Cursor is read only

682 byte By smitaunni at 2007-9-26 9:44:10
I have downloaded the JSQLCOnnect JDBC Driver from Netdirect..I am using MS SQL 2000 ....Allire JRUn and JDK 1.3I am trying to update the resultset..my code isStatement stmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);String strSQL= "SELECT * FROM [" + ...

Can the drivers do this?

616 byte By jimmythesaint at 2007-9-26 9:45:07
I want to access a MS Access DB file on a local machine. I will never need to access it remotely!!. I want to be able to save all the data caputred in a java standalone into the file. I will need to show that the app would be easy to install onto other computers however from what I understand ...

MS Access 2000 and 2002

252 byte By wazilian at 2007-9-26 9:45:15
i need to use java to access a MS Access database, locally and remotely. is the bridge better with 97, 2000, or 2002? or will i need to use something other than the bridge? also can i use PC Anywhere to access this database remotely? TIA.

Access of ms access database and displaying it on applets

572 byte By dipeshk at 2007-9-26 9:45:23
I had made the connection thru JDBC and was able to access data from MS Access database when i had written java application program. But when i created one applet and created instance of that class which was making connection to the database thru JDBC and called one method which was returning ...

class 4 JDBC driver for MySQL

534 byte By tdoyle5 at 2007-9-26 9:46:40
HI,I have installed MySQL and the Mark Matthews' MySQL JDBC Driver Version 0.9e.It works fine on basic stuff but I want to get adventurous and do scrollable ResultSets.Does anyone know for sure if this driver does or does not support this feature? I've looked through the documentation for a ...

Data Insertion

346 byte By kaluloo at 2007-9-26 9:50:10
Hi All,I have 3 databases, and I need to get selective data from 2 databases and insert into the tables in the 3rd. Data to be filled in a table in the 3rd database can be from one table in the 1st database and another table in the 2nd database. What is the efficient method to do this? Thanks ...

Java and OLAP

212 byte By madhavia at 2007-9-26 9:51:24
Hi,I want to connect to an OLAP server and execute multidimentional queries using Java. Can anyone tell me if and how this can be done?Does JDBC2.0 support this?Regards,

What is Connection Pooling

209 byte By rajeshkumar77 at 2007-9-26 9:51:45
Hi FriendsWhat is "Connection Pooling"I am developing Java Application using ms sql server 2000 databasePl explain me about thisthanxinadvanceyoursRajesh

db2 decimal - java bigdecimal

284 byte By schwarzwaelder at 2007-9-26 9:51:50
Hi,how can I get DB2 Decimal values into Java BigDecimal values. ResultSet offers a getBigDecimal method, but where can I put the value ? Creating a new BigDecimal is not possible, only String, BigInteger, double. getDouble causes rounding problems.Andreas

java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incor

2937 byte By shivanet at 2007-9-26 9:53:04
helloi am trying to call stored procedure from javabeans to SQL server database.my stored procedure is.....=========================================CREATE PROCEDURE sp_ins_client1_defect /* INSERTS defect AFTER GENERATING A NEW defectidRETRUN VALUES -1) -101 inser failed2) 0Successfull*/@status ...

Unable to get CreateCoffees to run on Centura sqlbase

1414 byte By scottarmand at 2007-9-26 9:57:49
Good morning,Can someone help me get this to run? When I run the CreateCoffees java tutorial I get the following:C:\jdk1.3.1\bin>java CreateCoffeesClassNotFoundException: centura.java.sqlbase.SqlbaseDriverSQLException: No suitable driverI have the SqlbaseDriver on my d:\Centura\java\sqlbase ...

Making Oracle "play nice" with date and time values

2515 byte By steveEbersole at 2007-9-26 9:58:06
I am trying to create a JDBC object layer over the database back-end for use by J2EE webapps. On updates to the database, I need to ensure that the row has not been updated by another user in the interm since I read it from the database. All of our tables already have certain "audit" columns ...

Capturing the autonumber of inserted row on MS Access 97

247 byte By bx573 at 2007-9-26 9:58:30
HiI need to get the autonumber of the inserted row on MS Access 97I use PreparedStatement ps = con.prepareStatement(insertString);ps.executeUpdate();ps.close();Your help is appreciated

"No local string for datasource.wrongclient"

695 byte By alexrebo at 2007-9-26 9:59:27
Hi All!Getting this message, followed by SQLException, while in the client app I'm trying to obtain a connection via DataSource.SQLException has no code, status or msg ( 0, null and ""respectively).Environment:J2EE RI v 1.3 with Cloudscape ( standard shipping).Database ( CloudscapeDB) exists ...

Applet jdbc: problem to run outside the forte editor.

635 byte By javalexander at 2007-9-26 10:00:44
I've made a simple applet that use jdbc bean componend to make a connection to mysql database and show result in a jtable.If I run the Applet on the Forte editor all its fine, for run the application alone in appletviewer i've make a package with ...

where is class "org.netbeans.lib.sql.ConnectionSource"

635 byte By javalexander at 2007-9-26 10:00:45
I've made a simple applet that use jdbc bean componend to make a connection to mysql database and show result in a jtable.If I run the Applet on the Forte editor all its fine, for run the application alone in appletviewer i've make a package with ...

Rookie info

206 byte By darkling235 at 2007-9-26 10:01:25
Okay this is the first time I've ever tried to create a database. I'm not sure how to get started. Do I need anything extra that's not in the JDK? Do I need to specially configure anything?

How do I open and close a DB ?

155 byte By footprint at 2007-9-26 10:01:44
How do I open and close a database ?How do I retrieve values from a database, is it retrieved by using sql statement ?Thank you

jdbc with excel...

246 byte By xnox at 2007-9-26 10:02:05
Hi all,Please tell me how to use jdbc with MS-excel worksheet. Say I have a file "Emp" in excel and I want to retrieve the data from it. How to do it. It will be of great help if steps and code are given.Thanks

problem in solving the alias name in queries.

677 byte By sapsa at 2007-9-26 10:02:07
hello I have an application which utilizes a query to take data from a database table & write to an XML file and vice-versa. I have a problem in solving the alias name in queries. e.g Select EmpID as EmployeeID from Employee.. Where EmpID is the original Column name in Table, and when i ...

retrive the date

383 byte By yilian at 2007-9-26 10:02:09
hi I was working to develop a scheduler .I was able to upload a date into database (MS Access)but i cannot retrieve this date back using a querysample codeString query=new String();query+="SELECT * FROM scheduler_master WHERE sdate=";query+="11/11/2000";ResultSet rs = ...

passing a variable

242 byte By kjonam at 2007-9-26 10:02:11
Hi , If any of you guys tell me to how to pass a variable into an SQL statement....e.g...INSERT INTO TEST Data ( 7, ""+variable , 'Fruday', 2, 2 ) Can anybody clarify whether this is even possible ?

how to save image in database

153 byte By pkshnarnond at 2007-9-26 10:04:21
hi allcud anybody please tell how to save an image file in database with any suitable xample or good site/docthkspawan

How to right JDBC code for all the drivers?

481 byte By chunyanji at 2007-9-26 10:05:21
Hi,I am writing a project using JDBC connecting to the MS SQL database. I am using inet Opta2000 JDBC driver now. I am trying to avoid writing specific driver name or any code related to the specific driver in the code becuase the user of this project may use another type of JDBC driver. Is ...

PreparedStatement reuse

784 byte By kerenler at 2007-9-26 10:05:51
Is it possible to use a PreparedStatement after its resultset has been processed? It seems to me like once you iterate through the ResultSet the PreparedStatement can not be executed again with a different set of parameters. Is this correct? I'm using the JdbcOdbcDriver, but I am also looking ...

Can Java invoke MS Access Modules?

232 byte By joeyqyuan at 2007-9-26 10:06:44
This seems weird, but I really need to do it now. I have a JDBC connection to MS Access. Can I run the Macros or Modules of Access from java codes? By doing this, I am able to avoid starting Access application. Thanks!

ResultSet and db2 stored procedure. Please Help!!!

1437 byte By lets629 at 2007-9-26 10:06:51
I got a ResultSet object from db2 stored procedure called.Here is my code:public static void execute() throws Exception{CallableStatement cs = createConnection().prepareCall("{ call STPR001 (?,?,?,?) }");cs.setString(1, createQueryString());cs.registerOutParameter(2, ...

Tomcat 4.0 Catilina & JDBC driver

495 byte By gpaulbn at 2007-9-26 10:07:23
Greetings,I have cobbled together an app that accesses a DB2 UDB on an AIX box. I am using the IBM driver COM.ibm.db2.jdbc.app.DB2Driver. My app throws a class not found exception and errors out when I try to access the database at exactly the point where the driver loads ...

A JDBC url question

262 byte By bx573 at 2007-9-26 10:08:27
HiI use the url jdbc:odbc:mydb.mdb to connect to database locally.Now I need to access the machine remotely.The ip of the machine is 192.168.0.7What is the url I need to use to connect to the machine.Thanks

Upgrading a database for a web page

107 byte By darkling235 at 2007-9-26 10:08:38
If I'm trying to use the jdbc to upgrade the information on a web page how do i go about it?

JDBC for SQL SERVER 2000

176 byte By padaek at 2007-9-26 10:10:24
I have downloaded it and installed it on my NT box. How do I use this? What's the syntax for making theconnection? Any help is greatly appreciated.

WebSphere update Security fails with CustomRegistry

1794 byte By ynacs at 2007-9-26 10:10:28
Hi friends,update WebSphere Security fails with my CustomRegistry IBM Interface implementation class using a Oracle8i as registry and datasource.getConnection(). I see a warn: Illegal use of 1PC resource in transaction. Driver for the datasource is a 1PC OracleConnectionPoolDataSource.No fails ...

Example to feed table data into a vector

415 byte By mzmrizu at 2007-9-26 10:10:48
I am looking for an example for getting a result set back, feed a column of data into a "pull down", select new data and commit.New to java, is there a straight forward example? I have tried to modify the jfc/TableExample2 provided. I am clueless on the approach. I have determined to use a ...