Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Firebird ISQL, can I prompt user to pass variable to script

Posted on 2008-10-08
4
Medium Priority
?
1,098 Views
Last Modified: 2013-12-09
I need to create a batch file that runs an sql query and prompts the user to enter in variables. Its really the simplest of queries.

update invoice set departmentid=1 where invoiceno=@uservariable

it should loop until the user presses esc or something like that, is it possible?

0
Comment
Question by:lagg2007
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
NickUpson earned 1000 total points
ID: 22671530
not in isql solely, I could do it with a unix shell script so it probably can be done in a dos shell

the code would be something like

prompt for invno
while invno != 0
  isql <params>
    update invoice ...
    commit;
    exit;
prompt for invno

looping outside of the isql itself


0
 

Author Comment

by:lagg2007
ID: 22676444
Sounds like it could be what im looking for, but ive not a clue how to call that in a dos script, could you give me a hand?
0
 
LVL 19

Expert Comment

by:NickUpson
ID: 22676692
sorry, dos scripting not my area, now if you were using a proper operating system, say linux, :)
0
 

Author Comment

by:lagg2007
ID: 22677294
Thanks for help mate! i know ifs and buts. The software isnt supported on linux:(
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question