Please enable JavaScript to view this site.

ASQL Reference

Navigation: » No topics above this level «

Introduction

Scroll Prev Top Next More

To begin experimenting ASQL and an SQL database, here are the steps needed to create the necessary environment:

If you are not now reading the latest posted version of this document, the A-Shell ASQL Reference, get it from the A-Shell documentation page.
Install a database engine (server) and client library. As of ASQL version 1.2, under A-Shell/Linux we support MySQL, and under A-Shell/Windows we support any database for which there is an ODBC 3.0 driver (aka “data source”). See the Appendix for installation tips. Note that ASQL talks to the database data source or client library, which then talks to the engine or server, so in most cases, it doesn’t matter what kind of hardware the engine/server runs on.
Confirm that you are using A-Shell version 5.1.1145 or later. As always, MicroSabio recommends that you be using the latest published/stable version of A-Shell.
Download and install the latest copy of the appropriate ASQL “connector:” either libashmysql for the native MySQL interface, or libashodbc for the ODBC interface. See Installation.
Create an A-Shell PPN and assign it an ersatz name of “SQL:” The recommended PPN is [909,60].
Download the latest version of sqltst##.zip from the ASQL folder on the MicroSabio server, and unzip the files into the SQL: account you created in the previous step.
Run sqltest1. This program will verify that the connector and client library are properly installed, and if not, may give you some clues about what the problem is. There are further notes and comments in the Troubleshooting section.
See Sample Programs, Headers, Utilities for more information on tests and examples you can run or study.