[英]How to determine which tables are used by ASP.NET web solution?
Problem is a bit complex(or not) so I don't know exactly how to ask this question. 问题有点复杂(或没有问题),所以我不知道该怎么问。
My project is hybrid of MVC and WebForms approach. 我的项目是MVC和WebForms方法的混合。 It uses 3rd part software and it is packed with one quite big solution with a lot of little sub-systems.
它使用第三部分软件,并且包含一个非常大的解决方案以及许多小子系统。 Whole project uses two databases A and B.
整个项目使用两个数据库A和B。
I wanna stop using both databases and merge it to single one - lets say it will be A. To achieve this I have to create some deploy script to migrate B tables into A. I am not only sure which tables I really want. 我想停止使用这两个数据库并将其合并为一个数据库-假设它将是A。要实现这一点,我必须创建一些部署脚本以将B表迁移到A。我不仅确定我真正想要的是哪个表。
Main problem is I am not able to determine which tables are currently used (because some of them for sure are not - this is really messy). 主要问题是我无法确定当前使用了哪些表(因为某些表肯定没有使用-这确实很麻烦)。 Additionally some table names are same in A and B. Is there any automated way to do this?
另外,A和B中的某些表名称相同。是否有任何自动方法可以做到这一点? This project is quite big and we hadn't been supplied with documentation.
这个项目很大,我们没有提供相关文档。 Manual way for identifying this stuff would be quite horrible.
手动识别这些东西的方法将非常可怕。
Any ideas for speed up would be appreciated. 任何加快想法将不胜感激。
Best Regards. 最好的祝福。
You can use SQL Profiler to seen what users are accessing your database. 您可以使用SQL事件探查器查看哪些用户正在访问您的数据库。
If the two applications have different sql user login's you can quite easy see what queries are being run and which tables are being accessed. 如果两个应用程序具有不同的sql用户登录名,则可以很容易地看到正在运行的查询和正在访问的表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.