! sqrsh (sqr shell) ! Copyright (C) 1997 Ray Ontko & Company ! ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! !++ ! ! connect ! ! connect usr/pwd ! ! reconnects to the database using the username and password given. ! !-- ! ! Author ! ! Ray Ontko ! Ray Ontko & Company ! Richmond, In 47375 ! ! ! Modification History ! ! Name Date Comment ! ---------------- ---------- ---------------------------------------- ! Ray Ontko 1997/06/01 Added this header ! !---------------------------------------------------------------- connect begin-procedure connect local #if {SQR-DATABASE}=ORACLE connect $_p1 on-error=connect_error #else show 'sqrsh: "connect" is only available for ORACLE databases at the present time' #endif end-procedure ! connect !---------------------------------------------------------- connect_error begin-procedure connect_error show 'sqrsh: Unable to connect using "' $p1 '"' end-procedure ! connect_error