dbTalk Databases Forums  

Global Searching in Sybase Central

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Global Searching in Sybase Central in the sybase.public.sqlanywhere.general forum.



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

Default Global Searching in Sybase Central - 10-31-2007 , 12:14 PM






Hi all...We have Sybase Central 4.3.0. Once I connect to my
DB there are folders for Tables, Views, Indexes, Triggers,
etc...
So far so good. My question is a simple one...Is there any
way to globally search the contents of all the Stored
Procedures or Views or Triggers in my DB using some sort of
search utility?

Reply With Quote
  #2  
Old   
Breck Carter [Team iAnywhere]
 
Posts: n/a

Default Re: Global Searching in Sybase Central - 10-31-2007 , 01:17 PM






One way is to query the system catalog...

BEGIN
SELECT * FROM SYSTABLE WHERE view_def LIKE '%xxx%';
SELECT * FROM SYSPROCEDURE WHERE proc_defn LIKE '%xxx%';
SELECT * FROM SYSTRIGGER WHERE trigger_defn LIKE '%xxx%';
SELECT * FROM SYSEVENT WHERE source LIKE '%xxx%';
END;

AFAIK there is no way to do global edits (your next question?

Breck

On 31 Oct 2007 11:14:20 -0700, Mark wrote:

Quote:
Hi all...We have Sybase Central 4.3.0. Once I connect to my
DB there are folders for Tables, Views, Indexes, Triggers,
etc...
So far so good. My question is a simple one...Is there any
way to globally search the contents of all the Stored
Procedures or Views or Triggers in my DB using some sort of
search utility?
--
Breck Carter [Team iAnywhere]
RisingRoad SQL Anywhere and MobiLink Professional Services
www.risingroad.com
The book: http://www.risingroad.com/SQL_Anywhe...ers_Guide.html
breck.carter (AT) risingroad (DOT) com


Reply With Quote
  #3  
Old   
Bruce Hay
 
Posts: n/a

Default Re: Global Searching in Sybase Central - 10-31-2007 , 01:31 PM



Another way to search the schema is to unload it to a file, then search the
resulting file. For example, "dbunload -n -c uid=xxx;pwd=yyy" will create
reload.sql. Sybase Central provides an equivalent "schema-only" unload.

Whitepapers, TechDocs, bug fixes at http://www.ianywhere.com/developer

<Mark> wrote

Quote:
Hi all...We have Sybase Central 4.3.0. Once I connect to my
DB there are folders for Tables, Views, Indexes, Triggers,
etc...
So far so good. My question is a simple one...Is there any
way to globally search the contents of all the Stored
Procedures or Views or Triggers in my DB using some sort of
search utility?



Reply With Quote
  #4  
Old   
Andrew Giulinn
 
Posts: n/a

Default Re: Global Searching in Sybase Central - 10-31-2007 , 03:11 PM



Two options come to mind:

1. Reverse engineer into PowerDesigner and use one of a number of
techniques there.
2. Upgrade to latest SQL Anywhere. Sybase Central 5 provides a search
feature that does exactly what you are after.

<Mark> wrote

Quote:
Hi all...We have Sybase Central 4.3.0. Once I connect to my
DB there are folders for Tables, Views, Indexes, Triggers,
etc...
So far so good. My question is a simple one...Is there any
way to globally search the contents of all the Stored
Procedures or Views or Triggers in my DB using some sort of
search utility?



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.