![]() |
sponsored links |
|
|
sponsored links
|
|
|
|
3
31st May 15:21
External User
Posts: 1
|
This information is held in sysdepends and is usually accessed by sp_depends
proc, which will give you the information. Should be a relatively simple job to knock up a script to do that for each table. 1> sp_depends get_apptable1 2> go Things the object references in the current database. object type updated selected ---------------------------------------- ---------------- ---------- ---------- dbo.mark_msg_read stored procedure no no dbo.apptable1 user table no no (return status = 0) 1> sp_depends mark_msg_read 2> go Things the object references in the current database. object type updated selected ---------------------------------------- ---------------- ---------- ---------- dbo.appkey8 user table no no dbo.appkeyA user table yes yes dbo.get_now_for_appkey8 stored procedure no no Things inside the current database that reference the object. object type ---------------------------------------- ---------------- dbo.get_apptable1 stored procedure dbo.get_apptable2 stored procedure dbo.get_apptable3 stored procedure dbo.get_in_text stored procedure dbo.process_empty stored procedure dbo.process_hours_of_service stored procedure dbo.process_load_at_shipper stored procedure dbo.process_pre_assign_ack stored procedure dbo.process_request_directions stored procedure dbo.process_trip_complete stored procedure (return status = 0) 1> Not aware of a tool. PowerDesigner *may* be able to do this. dowen -- David Owen Midsomer Consultants Inc. dowen@midsomer.org Maintainer of the Sybase FAQ: http://www.isug.com/Sybase_FAQ |
|
|
4
31st May 15:21
External User
Posts: 1
|
This information is held in sysdepends and is usually accessed by sp_depends
proc, which will give you the information. Should be a relatively simple job to knock up a script to do that for each table. 1> sp_depends get_apptable1 2> go Things the object references in the current database. object type updated selected ---------------------------------------- ---------------- ---------- ---------- dbo.mark_msg_read stored procedure no no dbo.apptable1 user table no no (return status = 0) 1> sp_depends mark_msg_read 2> go Things the object references in the current database. object type updated selected ---------------------------------------- ---------------- ---------- ---------- dbo.appkey8 user table no no dbo.appkeyA user table yes yes dbo.get_now_for_appkey8 stored procedure no no Things inside the current database that reference the object. object type ---------------------------------------- ---------------- dbo.get_apptable1 stored procedure dbo.get_apptable2 stored procedure dbo.get_apptable3 stored procedure dbo.get_in_text stored procedure dbo.process_empty stored procedure dbo.process_hours_of_service stored procedure dbo.process_load_at_shipper stored procedure dbo.process_pre_assign_ack stored procedure dbo.process_request_directions stored procedure dbo.process_trip_complete stored procedure (return status = 0) 1> Not aware of a tool. PowerDesigner *may* be able to do this. dowen -- David Owen Midsomer Consultants Inc. dowen@midsomer.org Maintainer of the Sybase FAQ: http://www.isug.com/Sybase_FAQ |
|
|
6
31st May 15:22
External User
Posts: 1
|
You certainly can rely on sysdepends. If not there must be a bug in the
release of ASE you are using. I suspect that this comes under the "myths and legends of a database server". "It seems", do you mean you have an actual case that you could log with Sybase where it does not get updated?? What ASE version? Which platform? I would be interested in the answer. Two points. Firstly, you have more faith in DBArtisan than I do. It must also be a newer version that the last one I used (version 6.something) since it could only extract the stored procs in either sysobjects order (ie based on crdate) or in alphabetical order. I admit that this may have changed with version 7 (if they have released a version of 7 which can connect to Sybase). My second point is this. If they have updated the software, where do you think they are getting their information from? It is either sysdepends *or* they are searching through syscomments in order to determine the extraction order. I suspect that for even a small(ish) number of tables the latter would take a significant amount of time. dowen -- David Owen Midsomer Consultants Inc. dowen@midsomer.org Maintainer of the Sybase FAQ: http://www.isug.com/Sybase_FAQ |
|
|
8
31st May 15:22
External User
Posts: 1
|
If you create a proc that depends on another proc that doesn't exist yet
then sysdepends doesn't get updated. So sysdepends is not necessarily 100% correct. Michael -- Michael Peppler Data Migrations, Inc. mpeppler@peppler.org http://www.mbay.net/~mpeppler Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or long term contract positions - http://www.mbay.net/~mpeppler/resume.html |
|
|
10
31st May 15:22
External User
Posts: 1
|
You certainly can rely on sysdepends. If not there must be a bug in the
release of ASE you are using. I suspect that this comes under the "myths and legends of a database server". "It seems", do you mean you have an actual case that you could log with Sybase where it does not get updated?? What ASE version? Which platform? I would be interested in the answer. Two points. Firstly, you have more faith in DBArtisan than I do. It must also be a newer version that the last one I used (version 6.something) since it could only extract the stored procs in either sysobjects order (ie based on crdate) or in alphabetical order. I admit that this may have changed with version 7 (if they have released a version of 7 which can connect to Sybase). My second point is this. If they have updated the software, where do you think they are getting their information from? It is either sysdepends *or* they are searching through syscomments in order to determine the extraction order. I suspect that for even a small(ish) number of tables the latter would take a significant amount of time. dowen -- David Owen Midsomer Consultants Inc. dowen@midsomer.org Maintainer of the Sybase FAQ: http://www.isug.com/Sybase_FAQ |
|