![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
At the risk of asking a stupid question - Is anyone familiar with either a query against the systables or maybe an outside tool that will provide a list of the most common joins that have been made in user created views? I'm not talking about table relationships that are established at the database level, but rather, I'm referring to the ability to find which joins have been utilized in poorly constructed databases where no relationships were established in the first place. Thanks in advance - Cindy T. |
#3
| |||
| |||
|
|
I'm referring to the ability to find which joins have been utilized in poorly constructed databases where no relationships were established in the first place. |
#4
| |||
| |||
|
|
I'm referring to the ability to find which joins have been utilized in poorly constructed databases where no relationships were established in the first place. I am not sure that this would even be possible with an AI tool. You would have to find VIEWs that restore split attributes, are used to fix denormalized tables, etc. |
#5
| |||
| |||
|
|
If we had the ability to generate a database table that lists joins that were used - imagine a tool where you plug in the names of 4 tables, for example, and then you get a report where you see all the fields, join types, and join type operators that were used between those 4 tables - along with the frequency of use. It seems it would go a long way toward getting a database in better shape to document common relationships. |
#6
| |||
| |||
|
|
Cindy wrote: If we had the ability to generate a database table that lists joins that were used - imagine a tool where you plug in the names of 4 tables, for example, and then you get a report where you see all the fields, join types, and join type operators that were used between those 4 tables - along with the frequency of use. It seems it would go a long way toward getting a database in better shape to document common relationships. You might want to run a Profiler trace for a while, send output to a new table, then query the table for accesses to a table that you're interested in. You can also look at sysobjects and syscomments to determine which views access a given table (especially if the Profiler output cites the view rather than the underlying tables; I've mostly used Profiler to deal with stored procedures accessing tables directly, so I don't know the answer to that one without testing it). |
#7
| |||
| |||
|
|
Do you mean listing all poor running queries? You could list all in Profiler -- Jack Vamvas ___________________________________ Search IT jobs from multiple sources- http://www.ITjobfeed.com/SQL "Cindy" <ckspot-temp (AT) yahoo (DOT) com> wrote in message news:1191263723.914683.228640 (AT) r29g2000hsg (DOT) googlegroups.com... At the risk of asking a stupid question - Is anyone familiar with either a query against the systables or maybe an outside tool that will provide a list of the most common joins that have been made in user created views? I'm not talking about table relationships that are established at the database level, but rather, I'm referring to the ability to find which joins have been utilized in poorly constructed databases where no relationships were established in the first place. Thanks in advance - Cindy T. |
![]() |
| Thread Tools | |
| Display Modes | |
| |