Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8483717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:10:57+00:00 2026-06-10T20:10:57+00:00

I have a java application from which I need to delete and insert data

  • 0

I have a java application from which I need to delete and insert data into a local JDBC derby database. I’m trying to execute a SQL script that does this using the ij utility. I’ve written a batch file to handle this.

C:
C:\Progra~1\Sun\JavaDB\bin\ij.bat
connect 'jdbc:derby:D:\Documents and Settings\user\My Documents\mydatabase';
run "D:\Documents and Settings\user\sqlscript.sql";
disconnect;
exit;

When I run the batch file, the command prompt will execute up to line 2. The ij utility will load in the command prompt, but then the rest of the commands won’t be run. I’ve tested each line by hand and it works fine (as does the SQL script). Is there anything I need to add to the batch file to make the last 4 lines execute? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:10:58+00:00Added an answer on June 10, 2026 at 8:10 pm

    Put these commands in a file called ‘commands.txt’

    connect 'jdbc:derby:D:\Documents and Settings\user\My Documents\mydatabase'; 
    run "D:\Documents and Settings\user\sqlscript.sql"; 
    disconnect; 
    exit; 
    

    then run ij as follows from your batch file:

    C:\Progra~1\Sun\JavaDB\bin\ij.bat commands.txt
    

    You might have the add the exact path to to commands.txt if it is not in your current folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client application which runs as a Java applet from a user's
I have made a java application that stores data from a .csv file to
I have a byte array, received from java application via network. I need to
I need to do some printing from my Java Swing application. I have tried
I have an application which consists of two activities/screens and a java class from
I have a Java web application which stores some data in the session. The
I have a java application which downloads a file from an FTP server and
I am developing a stand-alone java application which gathers data from around 1000 measuring
We have a Java web service that we call from our application. When we
Using Restlet I have created a router for my Java application. From using curl,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.