简体   繁体   English

逆向工程报告

[英]Reverse Engineering Reports

I am trying to reverse engineer some reports from an existing system. 我试图对现有系统中的某些报告进行反向工程。

The situation is that I have re-created the database locally to me. 情况是我已经在本地重新创建了数据库。 I dont have any of the original front end code. 我没有任何原始的前端代码。 I need to create the code for reports that the existing system does so that I can add extra functionality the client requires. 我需要为现有系统创建的报告创建代码,以便可以添加客户端所需的其他功能。

Right now its a bit of a tangled mess as I try and work out what all the tables do and mean (there is like 50 tables and only 1 has a foreign key so its a bit confusing). 现在,当我尝试弄清所有表的功能和含义时,情况有些混乱(大约有50个表,只有1个具有外键,因此有点混乱)。

The client has the existing system up and running on his server, just with no access to the code. 客户无需访问代码即可在服务器上启动并运行现有系统。

Is there something we can do to see the actual queries that are being run by the software? 我们可以做些什么来查看软件正在运行的实际查询吗?

ie

1) run report on old system 1)在旧系统上运行报告

2) get a log from SQL server 2000 of all queries made 2)从SQL Server 2000获取所有查询的日志

I think this would save me a crapload of time and give more accurate results but i cant figure out how to do this. 我认为这将为我节省大量时间并提供更准确的结果,但是我不知道该怎么做。

Anyone have any ideas? 有人有想法么?

You can run the SQL Server Profiler. 您可以运行SQL Server Profiler。 It allows you to watch the execution of commands on the server. 它使您可以观察服务器上命令的执行情况。 In order to watch SQL commands its best to watch "SQL: Batch completed" events. 为了观看SQL命令,最好观看“ SQL:批处理完成”事件。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM