LOAD INTO table Sybase IQ help please

Thread Solved

Join Date: Aug 2008
Posts: 17
Reputation: Miyuki Suzuki is an unknown quantity at this point 
Solved Threads: 0
Miyuki Suzuki's Avatar
Miyuki Suzuki Miyuki Suzuki is offline Offline
Newbie Poster

LOAD INTO table Sybase IQ help please

 
0
  #1
Mar 31st, 2009
Good Morning all,

I need some help with loading a file into a sybase IQ table with the "LOAD INTO" statement.
I have never used it before and I cant seem to get myhead around how I am supposed to implement it in my java app.

I have a stateless ejb that does file pick up and copy.
After that I used a bufferedreader to extract the stuffs from the file, put it in an array and then used the collection to persist it.

Thing is, it still takes too much time.
I was told to use the Sybase IQ LOAD INTO table statement, but as yet, I havent come across an example of how to use it.

Can anyone either point me in the right direction to a java implemetation of this or please provide an example.
thank you,
Miyuki
"Better a witty fool than a foolish wit."
- Shakespeare
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 146
Reputation: Stylish is an unknown quantity at this point 
Solved Threads: 14
Stylish's Avatar
Stylish Stylish is offline Offline
Junior Poster

Re: LOAD INTO table Sybase IQ help please

 
0
  #2
Mar 31st, 2009
Sure. This is run on the IQ instance.

The location is ASE_SERVER.LOCAL_DATABASE (ASE_SERVER should be in your interfaces/sql.ini file).

  1. INSERT INTO iqTable
  2. location 'ASE.DB'
  3. (
  4. SELECT * FROM DB..TABLE
  5. )

I cannot assist on setting up the location nor where to find more details in IQ. I am learning this at the moment.
Last edited by Stylish; Mar 31st, 2009 at 1:11 pm.
I NEED AN ADULT!
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 17
Reputation: Miyuki Suzuki is an unknown quantity at this point 
Solved Threads: 0
Miyuki Suzuki's Avatar
Miyuki Suzuki Miyuki Suzuki is offline Offline
Newbie Poster

Re: LOAD INTO table Sybase IQ help please

 
0
  #3
Apr 6th, 2009
hey there,
thanks for the response, i figured it out already.
thank you.
"Better a witty fool than a foolish wit."
- Shakespeare
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC