Re: isql script calling other script
- From: Michael Peppler <mpeppler@xxxxxxxxxxx>
- Date: Wed, 20 Jun 2007 17:41:52 +0200
On Wed, 20 Jun 2007 08:04:05 -0700, Keith wrote:
Is there, by chance, a #define equivalent? Could you do something
like:
#define TARGDB prod
...
insert into TARGDB.dbo.myTable ....
We use that type of capability too, and although the cpp solution is
more portable
If you use sqsh you can use:
\set TARGDB=prod
insert into $TARGDB.dbo...
See http://www.sqsh.org for more information.
Michael
--
Michael Peppler - Peppler Consulting SaRL
mpeppler@xxxxxxxxxxx - http://www.peppler.org
Sybase DBA/Developer - TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ - http://www.peppler.org/FAQ/linux.html
.
- References:
- isql script calling other script
- From: orientphoebus
- Re: isql script calling other script
- From: Carl Kayser
- Re: isql script calling other script
- From: Keith
- isql script calling other script
- Prev by Date: Re: isql script calling other script
- Next by Date: Help - Fetching Primary Key
- Previous by thread: Re: isql script calling other script
- Next by thread: Help - Fetching Primary Key
- Index(es):