dbTalk Databases Forums  

ASE 11.9 equivalent to SQL-Anywhere READ statement??

comp.databases.sybase comp.databases.sybase


Discuss ASE 11.9 equivalent to SQL-Anywhere READ statement?? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bonzo
 
Posts: n/a

Default ASE 11.9 equivalent to SQL-Anywhere READ statement?? - 11-25-2003 , 09:35 AM






Hello...

We have a script to migrate an ASE database from one (internal) version to
another. That script is really only actually a composite of several smaller
scripts run in sequence. Something like:
1. Drop Triggers
2. Drop SProcs
3. Drop Indexes
4. Drop Views
5. Perform Migrate DDL / DML
6. Create Views
7. Create Indexes
8. Create SProcs
9. Create Triggers

All the Drop and Create work exists in their own separate scripts (easier to
maintain).

Rather than copy-pasting the individual scripts into the master Migrate
script, I'd like to run them by referencing their individual script names.
SQL Anywhere lets me do it with:
READ drop_trggrs.sql
go
READ drop_sprocs.sql
go
READ drop_indxs.sql
go
..... etc.

Does Sybase ASE 11.9.2 (under Linux) have an equivalent capability and how
does it work?

Bonus Points: If it does, can the script with those calls-by-reference also
work under an ODBC-based ISQL editor?

Many Thanks...



Reply With Quote
  #2  
Old   
Bret Halford
 
Posts: n/a

Default Re: ASE 11.9 equivalent to SQL-Anywhere READ statement?? - 11-25-2003 , 05:33 PM






"bonzo" <me (AT) my (DOT) com> wrote

Quote:
Hello...

We have a script to migrate an ASE database from one (internal) version to
another. That script is really only actually a composite of several smaller
scripts run in sequence. Something like:
1. Drop Triggers
2. Drop SProcs
3. Drop Indexes
4. Drop Views
5. Perform Migrate DDL / DML
6. Create Views
7. Create Indexes
8. Create SProcs
9. Create Triggers

All the Drop and Create work exists in their own separate scripts (easier to
maintain).

Rather than copy-pasting the individual scripts into the master Migrate
script, I'd like to run them by referencing their individual script names.
SQL Anywhere lets me do it with:
READ drop_trggrs.sql
go
READ drop_sprocs.sql
go
READ drop_indxs.sql
go
.... etc.

Does Sybase ASE 11.9.2 (under Linux) have an equivalent capability and how
does it work?

Bonus Points: If it does, can the script with those calls-by-reference also
work under an ODBC-based ISQL editor?

Many Thanks...
Well, ASE (the server) doesn't have that capability, but various clients
do.

With ISQL, for instance, you can use the ":r <filename>" command to read in
a script file. I believe the SQSH utility also has similar capabilities.

-bret


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.