Advertisement

07.21.2008 at 10:19AM PDT, ID: 23582588
[x]
Attachment Details

How to get SELECT @@Identity to work, without generating the "String index out of bounds" error?

Asked by michaelpaschalmp in Microsoft Access Database, SQL Query Syntax

Tags: Sun Microsystems, Java NetBeans IDE, 6.01

After using JDBC to insert a new record into an MS Access table ("Rebalancing"), I need to fetch the generated AutoNumber key to use a foreign-key link in the descendant table.  Why does the "SELECT @@IDENTITY" SQL statement fail, with the error message "String index is out of range"?Start Free Trial
Attachments:
 
Method that updates two MS Access tables.
 
[+][-]07.22.2008 at 12:25AM PDT, ID: 22057016

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 01:58AM PDT, ID: 22057359

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 02:06AM PDT, ID: 22057384

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 04:46AM PDT, ID: 22058259

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 11:21AM PDT, ID: 22062107

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax
Tags: Sun Microsystems, Java NetBeans IDE, 6.01
Sign Up Now!
Solution Provided By: michaelpaschalmp
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.23.2008 at 02:33AM PDT, ID: 22067383

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:12AM PDT, ID: 22070788

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.23.2008 at 09:39AM PDT, ID: 22071081

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628