简体   繁体   English

如何确定ASP.NET Web解决方案使用哪些表?

[英]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用户登录名,则可以很容易地看到正在运行的查询和正在访问的表。

Sql Profiler SQL事件探查器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何确定在ASP.NET MVC解决方案中是否使用了映射的路由 - How to determine if mapped route is being used in ASP.NET MVC solution 如何确定asp.net核心应用程序将在哪个环境中运行? - How to determine which environment asp.net core app will run in? 如何确定哪个列用户单击了ASP.NET GridView - How to determine which column user clicked on ASP.NET GridView 如何确定ASP.NET网站的文件结构并将其滚动到项目/解决方案中? - How to determine file structure of ASP.NET website and roll it into a project/solution? 如何确定项目/解决方案中最常使用的代码? - How to determine which code in a project/solution is the most often used? 当我向 Web API Controller 中的 Z9E0DA8438E1E38A8DDZCE7C30 中的 Web 发送多部分请求时使用哪种格式化程序? - Which formatter is used when I send a multipart request to a Web API Controller in ASP.NET CORE? 确定共享主机中asp.net缓存使用的内存 - Determine memory used by asp.net cache in shared hosting 如何在相同解决方案的asp.net核心Razor页面中使用单独的asp.net核心web api - How to Use separate asp.net core web api in asp.net core Razor Page in Same Solution 如何确定ASP.NET中的会话类型 - How to determine the session type in asp.net ASP.NET:如何判断账号登录? - ASP.NET: How to determine account login?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM