[an error occurred while processing this directive]

DBScript usage | download | bugs & enhancements | history | credits

Last Updated August 13, 2000

DBScript

The DBScript utility generates a SQL script based on a given database table. The script will contain an INSERT statement for every row of the table; this can be used to re-create all or some of the table's contents.

Unlike BCP (a command-line utility for performing similar actions under Microsoft SQL Server and Sybase), however, this utility does give you the opportunity to deal with a subset of the table. You may specify a SELECT statement, and DBScript will only generate INSERT statements for those rows returned by your SELECT.

MainWindow

Usage instructions are available if you need assistance in using this utility.

Download

In order to use this utility, you will need to download and install Sun's Java Runtime Environment, version 1.2.2.

You will also need to download DBScript itself. The current version is 1.9 (July 16, 2000).


DBScript is written in Java. However, due to its dependence on ODBC, it is pretty well tied to the Win32 platform.

DBScript makes use of the Apache Xerces XML Parser software, version 1.1.2 (included in the download). This is used to parse the configuration file, which is in XML format. Please read the XMLLicense.txt and apache_license.txt files distributed with DBScript for warranty and licensing information regarding the XML Parser software and its use in DBScript.

DBScript is freeware, and is covered under the GNU Public License (the Apache Xerces XML Parser is not covered under the GNU Public License, however). If you like it, or have any suggestions, please let me know. The current list of known bugs and planned enhancements is also available.

If you are interested, the Java source code is also available for download. (If you're interested, the list of known bugs/issues/code cleanup is also available.) This includes a .jpr file for use with Borland JBuilder 3.5, but the source should be just as easily compiled using the straight JDK from Sun.


History

1.9 (7/16/00): ported to Borland JBuilder 3.5; ported to JDK 1.2.2; switched to Apache Xerces XML Parser; updated About dialog to reflect new DBScript web address.
1.8 (6/13/99): now generates '' for every ' encountered in string values, to avoid syntax errors on running the generated INSERT script.
1.7 (4/24/99): fixed "go" bug; fixed NULL quoting bug; allow escape characters in config file; allow both pre and post SQL in config file
1.6 (4/11/99): Implemented an XML-based configuration file, currently containing only Oracle vs MS SQL Server batch termination SQL
1.5 (4/8/99): Now understands Oracle vs MS SQL Server, and includes "go" or ";" as appropriate
1.4 (3/29/99): Initial GUI version
1.3 (3/23/99): Revised object model for better integration with GUI
1.2 (2/27/99): Added optional input and output files
1.1 (2/21/99): Command-line parameters are now parsed by label, not by order
1.0 (2/15/99): Initial release


Credits

Thanks to Joel Nylund and Core Java 2, Volume I - Fundamentals (by Cay S. Horstmann and Gary Cornell), both for doing an excellent job of teaching me how to write Java code. (So if you looked at my source code and don't like it, blame them. :)


Comments or questions about this web page or about DBScript? Email me at software@eshayne.com


DBScript usage | download | bugs & enhancements | history | credits