dbTalk Databases Forums  

how to trace what table a field comes from?

comp.databases.sybase comp.databases.sybase


Discuss how to trace what table a field comes from? in the comp.databases.sybase forum.



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

Default how to trace what table a field comes from? - 12-30-2003 , 08:27 AM






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?

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.