| Author |
Topic  |
|
|
kond.mohan
Posting Yak Master
India
136 Posts |
Posted - 02/19/2013 : 01:42:19
|
hi all, i have loaded all Required tables from oracle to Sql server in DB1. and i have created few stored procedures on DB1 database and i have created few stored procedures on DB2 database. i need to identify which table is using which stored procedure. is there any script to identify all the objects. i have used by dependencies option. but it is showing tables existing database (db1)procedures only.it is not showing another database procedure. |
|
|
visakh16
Very Important crosS Applying yaK Herder
India
47099 Posts |
|
|
kond.mohan
Posting Yak Master
India
136 Posts |
Posted - 02/19/2013 : 06:54:38
|
THX Vishak.
Following query is used to identify the SQLOBJECTS Across the WHOLE Database. SELECT referencing_entity_name FROM sys.dm_sql_referencing_entities ('DENTAL', 'OBJECT') this is working fine.
but my need is identify the SQLOBJECTS Across the Server or specified Databases. because my staging area is different(i.e tables are existed in SAMPLE1 database.i have used sample1 tables in SAMPLE2 database.)
Advance thx. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
India
47099 Posts |
|
| |
Topic  |
|