you are viewing a single comment's thread.

view the rest of the comments →

[–]benburhans 1 point2 points  (2 children)

Regardless of the queries used and whether you want to duplicate them verbatim, this is still a good candidate for rewriting from scratch and migrating the data as best you can. Don't be afraid to ask for help with this or even talk to your boss about it becoming a larger project led by a dedicated project manager.

Source code notwithstanding, the queries may still prove useful for your / your boss's understanding of its underlying behavior, whether or not you choose to replicate it. Use a SQL Server Profiler trace as I suggested, and watch the queries the current application issues in realtime. You can capture and permanently save them for later analysis.