• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

couldn't execute insert statement

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the insert statement?
 
sabr sabars
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic