Unix Technical Forum

how to trace what table a field comes from?

This is a discussion on how to trace what table a field comes from? within the Sybase forums, part of the Database Server Software category; --> Is there some kind of auditing software that will look at all the stored procedures and make a library ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 04:10 PM
BHE
 
Posts: n/a
Default how to trace what table a field comes from?

Is there some kind of auditing software that will look at all the
stored procedures and make a library of which fields (table columns)
are accesses where? Currently we have DB Artisan.

We have 1000 stored procedures (procs). Unfortunately many procs
don't use aliases, or use varying aliases for the same table.
Ex: Table A has columns a1, a2. Table B has b1, b2

We have queries like:

select a1,b2 from A,B ...
[can't readily see what field belongs to what table]

select xxx.a1 from A xxx
select yyy.a1 from A yyy
[varying alias names for the same table]


This makes it hard to know where A.a1 is accessed. The only way I
know of is to do a data base search for objects (procs & views) that
access "a1" and look at all of them. So if table C has a column named
a1 it will show up.


IS THERE ANY AUDITING SOFTWARE THAT CAN HELP ME?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com