🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #164

Re: interbase 4.2 and SHOW error ?? ? ? ?

#164
From: Jonathan Jones
Date: Fri, 29 Aug 1997 00:00
50 lines
2098 bytes
Hi Lucas,

Try this, 
Create an SQLScript file in  in notepad such as the following
CONNECT "databasepath\name"
USER "name" PASSWORD "password";
SHOW VERSION;

Save it and run it from ISQL.
I am not sure why SHOW doesn't work outside of SQL scripts,
 but I am sure someone out there can tell us.

the same applys to SET TERM, you need to run it from a SQL script e.g.
CONNECT "databasepath\name"
USER "name" PASSWORD "password";
SET TERM !! ;
CREATE TRIGGER SAVE_SALARY_CHANGE FOR EMPLOYEE
AFTER UPDATE AS
BEGIN
	IF (OLD.SALARY <> NEW.SALARY) THEN
		INSERT INTO SALARY_HISTORY
			(EMP_NO, CHANGE_DATE, UPDATER_ID, OLD_SALARY,
PERCENT_CHANGE)
		VALUES (OLD.EMP_NO, "now", USER, OLD.SALARY,
		(NEW.SALARY - OLD.SALARY) * 100 / OLD.SALARY);
END !!
SET TERM ; !!


Best Regards 
Jonathan Jones


On Wed, 27 Aug 1997 11:06:30 -0400, lucas <lucas@iquanta.com> wrote:

>ok, i must be missing an important thing here, because the SHOW commands
>are not recognized either.  for instance, under interbase isql, i will
>connect to the database, then type 
>
>SHOW VERSION;
>
>isql says that SHOW is a bad SQLCODE.  can i not run SHOW and SET TERM
>in isql?  am i doing something wrong?
>-- 
>lucas
>lucas@iquanta.com
>http://www.iquanta.com
>
>may the wind be at your back .. .  .   .
Technical Details
Message-ID: <3406d784.21397189@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <340423AF.5B1C@iquanta.com> <34044276.2856@iquanta.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ffff5,3641b5168a43883f,start
X-Google-Attributes: gidffff5,public
X-Google-Thread: fc5c9,3641b5168a43883f,start
X-Google-Attributes: gidfc5c9,public
X-Google-Thread: 10de66,3641b5168a43883f,start
X-Google-Attributes: gid10de66,public
From: NoSpam*jjones@ambr.demon.co.uk (Jonathan Jones)
Subject: Re: interbase 4.2 and SHOW error ?? ?  ?       ?
Date: 1997/08/29
Message-ID: <3406d784.21397189@news.demon.co.uk>
X-Deja-AN: 268924623
X-NNTP-Posting-Host: ambr.demon.co.uk [194.222.162.230]
References: <340423AF.5B1C@iquanta.com> <34044276.2856@iquanta.com>
Organization: Ambridge Medical Systems
Newsgroups: comp.lang.pascal.delphi.databases,comp.databases,borland.public.delphi.database.sqlservers