Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

couldn't execute insert statement

 
sabr sabars
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

after created couldscape database and its table inside websphere v6 and tried to execute the insert sql statement inside websphere v6 with the same connection used when created database and its table i got an error saying "problems encountered while trying to establish connection CloudscapeConn. Reason:'Array index out of range:0'

could anyone know why the insert sql statment couldn't be executed inside websphere v6 with the same connection used when create its couldscape database and table

with regards and appreciate your help
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the insert statement?
 
sabr sabars
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is the sql insert statement

INSERT INTO
DBUSER1.ADDRESSTABLE
(
ID,
NAME,
PHONE,
ADDRESS
)
VALUES
(
1,
'Jane',
1234567,
'8200 warden'
)
ID : primary key and Integer
Name and address : VCHAR
phone : interger

with regards and appreciate your help
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks ok. Are you able to run the command at the command line? Are you able to run other commands through WebSphere?
 
Bougnon Kipre
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sabr sabars:
here is the sql insert statement

INSERT INTO
DBUSER1.ADDRESSTABLE
(
ID,
NAME,
PHONE,
ADDRESS
)
VALUES
(
1,
'Jane',
1234567,
'8200 warden'
)
ID : primary key and Integer
Name and address : VCHAR
phone : interger

with regards and appreciate your help


Can this be correct) extra 'r' phone data type
phone : interger
Shouldn't it read
phone : integer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic