Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Java Database Connectivity (JDBC) | Forum profile

Forum profile page for Java Database Connectivity (JDBC) on http://www.sun.com. This report page is the aggregated overview from a single forum: Java Database Connectivity (JDBC) , located on the Message Board at http://www.sun.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "Java Database Connectivity (JDBC) " on the Message Board at http://www.sun.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: Sun Forums - Java Database Connectivity (JDBC)
(site profile, domain info sun.com)
Title: Java Database Connectivity (JDBC)
Url: http://forums.sun.com/forum.jspa?forumID=48
Users activity: 28 posts per thread
Forum activity: 50 active threads during last week
 

Posting activity on Java Database Connectivity (JDBC) :

  Week Month 3 Months
Threads: 50 206 594
Post: 137 554 1,655
 

Java Database Connectivity (JDBC) Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
jschell
38
user's latest post:
Java-Firebird SQL
Published (2009-12-23 17:25:00)
If the database is growing based on historical type records where the older records are subject to far fewer queries then there are database design strategies that can be used to deal with it. And they are better applied sooner than later.
dcminter
10
user's latest post:
Java-Firebird SQL
Published (2009-12-23 08:01:00)
But is there any way to transfer the data I need to Java objects and then execute the SQL off of that? Yes. Is the solution I'm thinking about practical? No. If your queries are slow, tune your database and/or queries.
agehoops
8
user's latest post:
Oracle encoding
Published (2009-12-23 05:11:00)
Yea to be honest I don't really know. just thought it'd be nice but may just scrap it and stick it in as bytes. Thanks for all the help guys
sabre150
6
user's latest post:
Oracle encoding
Published (2009-12-22 03:33:00)
agehoops wrote: Hey thanks for the response but i think I may have sorted it I found another algorithm for the hashing of the password which uses bit shifting and generates a standard string of characters that are all alpha-numeric and forced to use UTF-8 which is fine for the database as it thinks it is plain text and it seems to be working But almost certainly it is not secure. Has the algorithm you are using been the subject of security...
Jaywhy
6
user's latest post:
need help i messed up my code
Published (2009-12-21 02:14:00)
ok thank's for the help im just really new about Tablemodel that's why i cant answer it im still learning i have a lot of different books too but sometimes i dont have the time since im not a programmer im familiar with hardware but im trying to learn java programming so i hope maybe someday i could become a java dev thank's for the help really help me a lot of trouble since this is not the only problem i have with my project
Saish
5
user's latest post:
problem connecting with...
Published (2009-12-22 11:49:00)
Well, whether it tells you or not, they are still thrown. :^) Are you sure you are not eating an exception anywhere? That having been said, explicitly surrounding it with try-catch should show what is happening. - Saish
Jory_Thompson
5
user's latest post:
problem connecting with...
Published (2009-12-22 18:05:00)
OMG how simple can this get? I used your suggestion of adding the catch around the offending method. Turns out it was being thrown because the mysql jar could not be found (but for some reason I was not catching it.) This happened because I removed mysql as a jar and added it back as a library. Remember - it ran fine in the IDE, so it was getting the library from the IDE, but for some reason, the ant build did not add the library to the...
Milindk007
4
user's latest post:
jdbc derby connectivity
Published (2009-12-22 20:01:00)
Thanks for your comments whenever i execute the mentioned command i get following error what could be the problem . I m using window environment. C:\>java -cp .;D:\Program Files\glassfish-v2\javadb\lib\derby.jar; Exception in thread "main" java.lang.NoClassDefFoundError: Files\glassfish-v2\ja vadb\lib\derby/jar;
M.Senthil_Kumar
4
user's latest post:
help me , I got, exception with...
Published (2009-12-23 18:54:00)
thank u all. I changed the statement to PreparedStaement I got correct output..
davidec
4
user's latest post:
DB2 vs MySQL
Published (2009-12-19 16:32:00)
Hello! Just my 2 cents: I've used batch updates/inserts on CallableStatements under MySL and have not had performance issues. Maybe the issue is in the SQL and we could help more if you posted the code of your batch...
 

Latest active threads on Java Database Connectivity (JDBC) ::

Sun Forums
Started 1 week, 4 days ago (2009-12-18 10:12:00)  by jschell
Print the stack trace. You should be using prepared statements. As a guess the SQL that you are passing doesn't match the table. Using explicit column names in your insert can prevent problems about assumptions about ordering in column tables.
Thread:  Show this thread (7 posts)   Thread info: help me , I got, exception with message "COUNT field incorrect " Size: 309 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: help me , I got, exception with message "COUNT field incorrect " :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Sun Forums
Started 6 days, 2 hours ago (2009-12-23 08:01:00)  by dcminter
But is there any way to transfer the data I need to Java objects and then execute the SQL off of that? Yes. Is the solution I'm thinking about practical? No. If your queries are slow, tune your database and/or queries.
Thread:  Show this thread (5 posts)   Thread info: Java-Firebird SQL Size: 363 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Java-Firebird SQL :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Sun Forums
Started 5 days, 17 hours ago (2009-12-23 17:00:00)  by jschell
This has nothing to do with JDBC. The MS Access ODBC driver (nothing to do with java) does whatever it wants. Solutions 1. Leave it as is 2. Try the single java only driver out there, which requires that you buy it, to see if it works differently. It might not do it differently. 3. Use a different database. 4. Don't use a user/password.
Thread:  Show this thread (2 posts)   Thread info: Error in data base connection - Help me Size: 418 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Error in data base connection - Help me :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Sun Forums
Started 5 months, 1 week ago (2009-07-22 05:38:00)  by Tolls
API. From the above, for setFetchSize(): "Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for ResultSet objects genrated by this Statement." ie, this is for setting the number of result it retrieves from the database when all the rows currently retrieved by next() have been read. It ...
Thread:  Show this thread (15 posts)   Thread info: Statement.setFetchSize is not working properly Size: 674 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Statement.setFetchSize is not working properly :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Sun Forums
Started 5 days, 17 hours ago (2009-12-23 16:53:00)  by jschell
ellias2007 wrote: Hi every Body, First i am using Apple Mac OS 10.5 OS, in order to connect from My JAVA Program to My Mysql DataBases, i open the SystemPreferences Panel and click the Mysql icon (Under the Title : Other) and Get the Botton "Start Mysql Server" That has nothing to do with Java (the language) nor JDBC. when i click this Botton to start Mysql work, it asks me about...
Thread:  Show this thread (2 posts)   Thread info: Connection Problem in Mac OS Size: 1,057 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Connection Problem in Mac OS :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Sun Forums
Started 6 days, 16 hours ago (2009-12-22 18:17:00)  by jschell
When you say "null" you mean that the following is printing a zero? (int)rs.getString(2).charAt(0) I would re-write that as the following just to be sure. (int)(rs.getString(2).charAt(0)) But regardless what is the exact datatype of the profile_url column in the table?
Thread:  Show this thread (6 posts)   Thread info: Empty String returned from varchar Size: 364 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Empty String returned from varchar :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Sun Forums
Started 1 week ago (2009-12-22 02:51:00)  by dcminter
Could anyone help? Not without a bit more detail. How are you storing the content, how are you retrieving the content, how are you comparing the stored and original strings, etc. (Edit: Oh, sorry, you did specify the DB). Edited by: dcminter on 22-Dec-2009 10:51
Thread:  Show this thread (17 posts)   Thread info: Oracle encoding Size: 367 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Oracle encoding :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Sun Forums
Started 1 week, 1 day ago (2009-12-21 05:33:00)  by markwagoner
You have to tell the DriverManager about the driver before trying to connect. Look at either Class.forName or DriverManager.registerDriver in the tutorials.
Thread:  Show this thread (8 posts)   Thread info: jdbc derby connectivity Size: 192 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: jdbc derby connectivity :: Java Database Connectivity (JDBC)
 :: Sun Forums"
 

Hot threads for last week on Java Database Connectivity (JDBC) ::

Java Database Connectivity (JDBC)
Started 1 week, 1 day ago (2009-12-21 08:03:00)  by Saish
If it runs in NetBeans but not standalone, then it is likely a classpath problem (that or NetBeans is supplying a JAR that you do not have standalone). - Saish
Thread:  Show this thread (18 posts)   Thread info: problem connecting with persistence when running from jar Size: 211 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: problem connecting with persistence when running from jar :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Re: Oracle encoding - 17 new posts
Started 1 week ago (2009-12-22 02:51:00)  by dcminter
Could anyone help? Not without a bit more detail. How are you storing the content, how are you retrieving the content, how are you comparing the stored and original strings, etc. (Edit: Oh, sorry, you did specify the DB). Edited by: dcminter on 22-Dec-2009 10:51
Thread:  Show this thread (17 posts)   Thread info: Oracle encoding Size: 367 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Oracle encoding :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Started 1 week, 1 day ago (2009-12-20 23:24:00)  by sabre150
In row.add(rs.getString(i)); addColumn(metadata.getColumnName(i)); every time you add a row of data you add a new set of columns! Add them once only before you add the data.
Thread:  Show this thread (11 posts)   Thread info: need help i messed up my code Size: 330 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: need help i messed up my code :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Started 1 week, 1 day ago (2009-12-21 05:33:00)  by markwagoner
You have to tell the DriverManager about the driver before trying to connect. Look at either Class.forName or DriverManager.registerDriver in the tutorials.
Thread:  Show this thread (8 posts)   Thread info: jdbc derby connectivity Size: 192 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: jdbc derby connectivity :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Started 1 week ago (2009-12-22 02:52:00)  by dcminter
If an exception is thrown no string is returned. Fix that.
Thread:  Show this thread (7 posts)   Thread info: returning a string from a result set Size: 93 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: returning a string from a result set :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Started 6 days, 16 hours ago (2009-12-22 18:17:00)  by jschell
When you say "null" you mean that the following is printing a zero? (int)rs.getString(2).charAt(0) I would re-write that as the following just to be sure. (int)(rs.getString(2).charAt(0)) But regardless what is the exact datatype of the profile_url column in the table?
Thread:  Show this thread (6 posts)   Thread info: Empty String returned from varchar Size: 364 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Empty String returned from varchar :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Started 6 days, 2 hours ago (2009-12-23 08:01:00)  by dcminter
But is there any way to transfer the data I need to Java objects and then execute the SQL off of that? Yes. Is the solution I'm thinking about practical? No. If your queries are slow, tune your database and/or queries.
Thread:  Show this thread (5 posts)   Thread info: Java-Firebird SQL Size: 363 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Java-Firebird SQL :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Started 1 week ago (2009-12-21 11:15:00)  by jschell
No.
Thread:  Show this thread (5 posts)   Thread info: sql statement on recordset Size: 38 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: sql statement on recordset :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Re: General error - 3 new posts
Started 1 week ago (2009-12-22 05:59:00)  by Saish
That is not nearly enough information to go on. What portion of the code is failing? (Not a page of code, do some analysis and post relevant portions). Be sure to use the 'code' button or tags when posting your code. What is the underlying table structure? Most programs loop. And obviously you have a statement and a connection or you would not have gotten the stack trace below. - ...
Thread:  Show this thread (3 posts)   Thread info: General error Size: 446 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: General error :: Java Database Connectivity (JDBC)
 :: Sun Forums"
Java Database Connectivity (JDBC)
Started 1 week ago (2009-12-21 11:14:00)  by jschell
Post code, at least an example to demonstrate how you are closing everything. Are you using the class SystemErrStream? If not then perhaps it has nothing to do with your code. The driver is allowed to do whatever it wants as long as it meets the API definition.
Thread:  Show this thread (3 posts)   Thread info: Thread owns monitor lock Size: 313 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Thread owns monitor lock :: Java Database Connectivity (JDBC)
 :: Sun Forums"